KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > impl > logging > NamingSystemException


1 // Log wrapper class for Sun private system exceptions in group NAMING
2
//
3
// Generated by mc.scm version 1.3, DO NOT EDIT BY HAND!
4
// Generated from input file ../../../../src/share/classes/com/sun/corba/se/spi/logging/data/Naming.mc on Sat Feb 09 02:04:18 PST 2008
5

6 package com.sun.corba.se.impl.logging ;
7
8 import java.util.logging.Logger JavaDoc ;
9 import java.util.logging.Level JavaDoc ;
10
11 import org.omg.CORBA.OMGVMCID JavaDoc ;
12 import com.sun.corba.se.impl.util.SUNVMCID ;
13 import org.omg.CORBA.CompletionStatus JavaDoc ;
14 import org.omg.CORBA.SystemException JavaDoc ;
15
16 import com.sun.corba.se.spi.orb.ORB ;
17
18 import com.sun.corba.se.spi.logging.LogWrapperFactory;
19
20 import com.sun.corba.se.spi.logging.LogWrapperBase;
21
22 import org.omg.CORBA.BAD_PARAM JavaDoc ;
23 import org.omg.CORBA.UNKNOWN JavaDoc ;
24 import org.omg.CORBA.INITIALIZE JavaDoc ;
25 import org.omg.CORBA.INTERNAL JavaDoc ;
26
27 public class NamingSystemException extends LogWrapperBase {
28     
29     public NamingSystemException( Logger JavaDoc logger )
30     {
31         super( logger ) ;
32     }
33     
34     private static LogWrapperFactory factory = new LogWrapperFactory() {
35         public LogWrapperBase create( Logger JavaDoc logger )
36         {
37             return new NamingSystemException( logger ) ;
38         }
39     } ;
40     
41     public static NamingSystemException get( ORB orb, String JavaDoc logDomain )
42     {
43         NamingSystemException wrapper =
44             (NamingSystemException) orb.getLogWrapper( logDomain,
45                 "NAMING", factory ) ;
46         return wrapper ;
47     }
48     
49     public static NamingSystemException get( String JavaDoc logDomain )
50     {
51         NamingSystemException wrapper =
52             (NamingSystemException) ORB.staticGetLogWrapper( logDomain,
53                 "NAMING", factory ) ;
54         return wrapper ;
55     }
56     
57     ///////////////////////////////////////////////////////////
58
// BAD_PARAM
59
///////////////////////////////////////////////////////////
60

61     public static final int TRANSIENT_NAME_SERVER_BAD_PORT = SUNVMCID.value + 600 ;
62     
63     public BAD_PARAM JavaDoc transientNameServerBadPort( CompletionStatus JavaDoc cs, Throwable JavaDoc t ) {
64         BAD_PARAM JavaDoc exc = new BAD_PARAM JavaDoc( TRANSIENT_NAME_SERVER_BAD_PORT, cs ) ;
65         if (t != null)
66             exc.initCause( t ) ;
67         
68         if (logger.isLoggable( Level.WARNING )) {
69             Object JavaDoc[] parameters = null ;
70             doLog( Level.WARNING, "NAMING.transientNameServerBadPort",
71                 parameters, NamingSystemException.class, exc ) ;
72         }
73         
74         return exc ;
75     }
76     
77     public BAD_PARAM JavaDoc transientNameServerBadPort( CompletionStatus JavaDoc cs ) {
78         return transientNameServerBadPort( cs, null ) ;
79     }
80     
81     public BAD_PARAM JavaDoc transientNameServerBadPort( Throwable JavaDoc t ) {
82         return transientNameServerBadPort( CompletionStatus.COMPLETED_NO, t ) ;
83     }
84     
85     public BAD_PARAM JavaDoc transientNameServerBadPort( ) {
86         return transientNameServerBadPort( CompletionStatus.COMPLETED_NO, null ) ;
87     }
88     
89     public static final int TRANSIENT_NAME_SERVER_BAD_HOST = SUNVMCID.value + 601 ;
90     
91     public BAD_PARAM JavaDoc transientNameServerBadHost( CompletionStatus JavaDoc cs, Throwable JavaDoc t ) {
92         BAD_PARAM JavaDoc exc = new BAD_PARAM JavaDoc( TRANSIENT_NAME_SERVER_BAD_HOST, cs ) ;
93         if (t != null)
94             exc.initCause( t ) ;
95         
96         if (logger.isLoggable( Level.WARNING )) {
97             Object JavaDoc[] parameters = null ;
98             doLog( Level.WARNING, "NAMING.transientNameServerBadHost",
99                 parameters, NamingSystemException.class, exc ) ;
100         }
101         
102         return exc ;
103     }
104     
105     public BAD_PARAM JavaDoc transientNameServerBadHost( CompletionStatus JavaDoc cs ) {
106         return transientNameServerBadHost( cs, null ) ;
107     }
108     
109     public BAD_PARAM JavaDoc transientNameServerBadHost( Throwable JavaDoc t ) {
110         return transientNameServerBadHost( CompletionStatus.COMPLETED_NO, t ) ;
111     }
112     
113     public BAD_PARAM JavaDoc transientNameServerBadHost( ) {
114         return transientNameServerBadHost( CompletionStatus.COMPLETED_NO, null ) ;
115     }
116     
117     public static final int OBJECT_IS_NULL = SUNVMCID.value + 602 ;
118     
119     public BAD_PARAM JavaDoc objectIsNull( CompletionStatus JavaDoc cs, Throwable JavaDoc t ) {
120         BAD_PARAM JavaDoc exc = new BAD_PARAM JavaDoc( OBJECT_IS_NULL, cs ) ;
121         if (t != null)
122             exc.initCause( t ) ;
123         
124         if (logger.isLoggable( Level.WARNING )) {
125             Object JavaDoc[] parameters = null ;
126             doLog( Level.WARNING, "NAMING.objectIsNull",
127                 parameters, NamingSystemException.class, exc ) ;
128         }
129         
130         return exc ;
131     }
132     
133     public BAD_PARAM JavaDoc objectIsNull( CompletionStatus JavaDoc cs ) {
134         return objectIsNull( cs, null ) ;
135     }
136     
137     public BAD_PARAM JavaDoc objectIsNull( Throwable JavaDoc t ) {
138         return objectIsNull( CompletionStatus.COMPLETED_NO, t ) ;
139     }
140     
141     public BAD_PARAM JavaDoc objectIsNull( ) {
142         return objectIsNull( CompletionStatus.COMPLETED_NO, null ) ;
143     }
144     
145     public static final int INS_BAD_ADDRESS = SUNVMCID.value + 603 ;
146     
147     public BAD_PARAM JavaDoc insBadAddress( CompletionStatus JavaDoc cs, Throwable JavaDoc t ) {
148         BAD_PARAM JavaDoc exc = new BAD_PARAM JavaDoc( INS_BAD_ADDRESS, cs ) ;
149         if (t != null)
150             exc.initCause( t ) ;
151         
152         if (logger.isLoggable( Level.WARNING )) {
153             Object JavaDoc[] parameters = null ;
154             doLog( Level.WARNING, "NAMING.insBadAddress",
155                 parameters, NamingSystemException.class, exc ) ;
156         }
157         
158         return exc ;
159     }
160     
161     public BAD_PARAM JavaDoc insBadAddress( CompletionStatus JavaDoc cs ) {
162         return insBadAddress( cs, null ) ;
163     }
164     
165     public BAD_PARAM JavaDoc insBadAddress( Throwable JavaDoc t ) {
166         return insBadAddress( CompletionStatus.COMPLETED_NO, t ) ;
167     }
168     
169     public BAD_PARAM JavaDoc insBadAddress( ) {
170         return insBadAddress( CompletionStatus.COMPLETED_NO, null ) ;
171     }
172     
173     ///////////////////////////////////////////////////////////
174
// UNKNOWN
175
///////////////////////////////////////////////////////////
176

177     public static final int BIND_UPDATE_CONTEXT_FAILED = SUNVMCID.value + 600 ;
178     
179     public UNKNOWN JavaDoc bindUpdateContextFailed( CompletionStatus JavaDoc cs, Throwable JavaDoc t ) {
180         UNKNOWN JavaDoc exc = new UNKNOWN JavaDoc( BIND_UPDATE_CONTEXT_FAILED, cs ) ;
181         if (t != null)
182             exc.initCause( t ) ;
183         
184         if (logger.isLoggable( Level.WARNING )) {
185             Object JavaDoc[] parameters = null ;
186             doLog( Level.WARNING, "NAMING.bindUpdateContextFailed",
187                 parameters, NamingSystemException.class, exc ) ;
188         }
189         
190         return exc ;
191     }
192     
193     public UNKNOWN JavaDoc bindUpdateContextFailed( CompletionStatus JavaDoc cs ) {
194         return bindUpdateContextFailed( cs, null ) ;
195     }
196     
197     public UNKNOWN JavaDoc bindUpdateContextFailed( Throwable JavaDoc t ) {
198         return bindUpdateContextFailed( CompletionStatus.COMPLETED_NO, t ) ;
199     }
200     
201     public UNKNOWN JavaDoc bindUpdateContextFailed( ) {
202         return bindUpdateContextFailed( CompletionStatus.COMPLETED_NO, null ) ;
203     }
204     
205     public static final int BIND_FAILURE = SUNVMCID.value + 601 ;
206     
207     public UNKNOWN JavaDoc bindFailure( CompletionStatus JavaDoc cs, Throwable JavaDoc t ) {
208         UNKNOWN JavaDoc exc = new UNKNOWN JavaDoc( BIND_FAILURE, cs ) ;
209         if (t != null)
210             exc.initCause( t ) ;
211         
212         if (logger.isLoggable( Level.WARNING )) {
213             Object JavaDoc[] parameters = null ;
214             doLog( Level.WARNING, "NAMING.bindFailure",
215                 parameters, NamingSystemException.class, exc ) ;
216         }
217         
218         return exc ;
219     }
220     
221     public UNKNOWN JavaDoc bindFailure( CompletionStatus JavaDoc cs ) {
222         return bindFailure( cs, null ) ;
223     }
224     
225     public UNKNOWN JavaDoc bindFailure( Throwable JavaDoc t ) {
226         return bindFailure( CompletionStatus.COMPLETED_NO, t ) ;
227     }
228     
229     public UNKNOWN JavaDoc bindFailure( ) {
230         return bindFailure( CompletionStatus.COMPLETED_NO, null ) ;
231     }
232     
233     public static final int RESOLVE_CONVERSION_FAILURE = SUNVMCID.value + 602 ;
234     
235     public UNKNOWN JavaDoc resolveConversionFailure( CompletionStatus JavaDoc cs, Throwable JavaDoc t ) {
236         UNKNOWN JavaDoc exc = new UNKNOWN JavaDoc( RESOLVE_CONVERSION_FAILURE, cs ) ;
237         if (t != null)
238             exc.initCause( t ) ;
239         
240         if (logger.isLoggable( Level.WARNING )) {
241             Object JavaDoc[] parameters = null ;
242             doLog( Level.WARNING, "NAMING.resolveConversionFailure",
243                 parameters, NamingSystemException.class, exc ) ;
244         }
245         
246         return exc ;
247     }
248     
249     public UNKNOWN JavaDoc resolveConversionFailure( CompletionStatus JavaDoc cs ) {
250         return resolveConversionFailure( cs, null ) ;
251     }
252     
253     public UNKNOWN JavaDoc resolveConversionFailure( Throwable JavaDoc t ) {
254         return resolveConversionFailure( CompletionStatus.COMPLETED_NO, t ) ;
255     }
256     
257     public UNKNOWN JavaDoc resolveConversionFailure( ) {
258         return resolveConversionFailure( CompletionStatus.COMPLETED_NO, null ) ;
259     }
260     
261     public static final int RESOLVE_FAILURE = SUNVMCID.value + 603 ;
262     
263     public UNKNOWN JavaDoc resolveFailure( CompletionStatus JavaDoc cs, Throwable JavaDoc t ) {
264         UNKNOWN JavaDoc exc = new UNKNOWN JavaDoc( RESOLVE_FAILURE, cs ) ;
265         if (t != null)
266             exc.initCause( t ) ;
267         
268         if (logger.isLoggable( Level.WARNING )) {
269             Object JavaDoc[] parameters = null ;
270             doLog( Level.WARNING, "NAMING.resolveFailure",
271                 parameters, NamingSystemException.class, exc ) ;
272         }
273         
274         return exc ;
275     }
276     
277     public UNKNOWN JavaDoc resolveFailure( CompletionStatus JavaDoc cs ) {
278         return resolveFailure( cs, null ) ;
279     }
280     
281     public UNKNOWN JavaDoc resolveFailure( Throwable JavaDoc t ) {
282         return resolveFailure( CompletionStatus.COMPLETED_NO, t ) ;
283     }
284     
285     public UNKNOWN JavaDoc resolveFailure( ) {
286         return resolveFailure( CompletionStatus.COMPLETED_NO, null ) ;
287     }
288     
289     public static final int UNBIND_FAILURE = SUNVMCID.value + 604 ;
290     
291     public UNKNOWN JavaDoc unbindFailure( CompletionStatus JavaDoc cs, Throwable JavaDoc t ) {
292         UNKNOWN JavaDoc exc = new UNKNOWN JavaDoc( UNBIND_FAILURE, cs ) ;
293         if (t != null)
294             exc.initCause( t ) ;
295         
296         if (logger.isLoggable( Level.WARNING )) {
297             Object JavaDoc[] parameters = null ;
298             doLog( Level.WARNING, "NAMING.unbindFailure",
299                 parameters, NamingSystemException.class, exc ) ;
300         }
301         
302         return exc ;
303     }
304     
305     public UNKNOWN JavaDoc unbindFailure( CompletionStatus JavaDoc cs ) {
306         return unbindFailure( cs, null ) ;
307     }
308     
309     public UNKNOWN JavaDoc unbindFailure( Throwable JavaDoc t ) {
310         return unbindFailure( CompletionStatus.COMPLETED_NO, t ) ;
311     }
312     
313     public UNKNOWN JavaDoc unbindFailure( ) {
314         return unbindFailure( CompletionStatus.COMPLETED_NO, null ) ;
315     }
316     
317     ///////////////////////////////////////////////////////////
318
// INITIALIZE
319
///////////////////////////////////////////////////////////
320

321     public static final int TRANS_NS_CANNOT_CREATE_INITIAL_NC_SYS = SUNVMCID.value + 650 ;
322     
323     public INITIALIZE JavaDoc transNsCannotCreateInitialNcSys( CompletionStatus JavaDoc cs, Throwable JavaDoc t ) {
324         INITIALIZE JavaDoc exc = new INITIALIZE JavaDoc( TRANS_NS_CANNOT_CREATE_INITIAL_NC_SYS, cs ) ;
325         if (t != null)
326             exc.initCause( t ) ;
327         
328         if (logger.isLoggable( Level.WARNING )) {
329             Object JavaDoc[] parameters = null ;
330             doLog( Level.WARNING, "NAMING.transNsCannotCreateInitialNcSys",
331                 parameters, NamingSystemException.class, exc ) ;
332         }
333         
334         return exc ;
335     }
336     
337     public INITIALIZE JavaDoc transNsCannotCreateInitialNcSys( CompletionStatus JavaDoc cs ) {
338         return transNsCannotCreateInitialNcSys( cs, null ) ;
339     }
340     
341     public INITIALIZE JavaDoc transNsCannotCreateInitialNcSys( Throwable JavaDoc t ) {
342         return transNsCannotCreateInitialNcSys( CompletionStatus.COMPLETED_NO, t ) ;
343     }
344     
345     public INITIALIZE JavaDoc transNsCannotCreateInitialNcSys( ) {
346         return transNsCannotCreateInitialNcSys( CompletionStatus.COMPLETED_NO, null ) ;
347     }
348     
349     public static final int TRANS_NS_CANNOT_CREATE_INITIAL_NC = SUNVMCID.value + 651 ;
350     
351     public INITIALIZE JavaDoc transNsCannotCreateInitialNc( CompletionStatus JavaDoc cs, Throwable JavaDoc t ) {
352         INITIALIZE JavaDoc exc = new INITIALIZE JavaDoc( TRANS_NS_CANNOT_CREATE_INITIAL_NC, cs ) ;
353         if (t != null)
354             exc.initCause( t ) ;
355         
356         if (logger.isLoggable( Level.WARNING )) {
357             Object JavaDoc[] parameters = null ;
358             doLog( Level.WARNING, "NAMING.transNsCannotCreateInitialNc",
359                 parameters, NamingSystemException.class, exc ) ;
360         }
361         
362         return exc ;
363     }
364     
365     public INITIALIZE JavaDoc transNsCannotCreateInitialNc( CompletionStatus JavaDoc cs ) {
366         return transNsCannotCreateInitialNc( cs, null ) ;
367     }
368     
369     public INITIALIZE JavaDoc transNsCannotCreateInitialNc( Throwable JavaDoc t ) {
370         return transNsCannotCreateInitialNc( CompletionStatus.COMPLETED_NO, t ) ;
371     }
372     
373     public INITIALIZE JavaDoc transNsCannotCreateInitialNc( ) {
374         return transNsCannotCreateInitialNc( CompletionStatus.COMPLETED_NO, null ) ;
375     }
376     
377     ///////////////////////////////////////////////////////////
378
// INTERNAL
379
///////////////////////////////////////////////////////////
380

381     public static final int NAMING_CTX_REBIND_ALREADY_BOUND = SUNVMCID.value + 600 ;
382     
383     public INTERNAL JavaDoc namingCtxRebindAlreadyBound( CompletionStatus JavaDoc cs, Throwable JavaDoc t ) {
384         INTERNAL JavaDoc exc = new INTERNAL JavaDoc( NAMING_CTX_REBIND_ALREADY_BOUND, cs ) ;
385         if (t != null)
386             exc.initCause( t ) ;
387         
388         if (logger.isLoggable( Level.WARNING )) {
389             Object JavaDoc[] parameters = null ;
390             doLog( Level.WARNING, "NAMING.namingCtxRebindAlreadyBound",
391                 parameters, NamingSystemException.class, exc ) ;
392         }
393         
394         return exc ;
395     }
396     
397     public INTERNAL JavaDoc namingCtxRebindAlreadyBound( CompletionStatus JavaDoc cs ) {
398         return namingCtxRebindAlreadyBound( cs, null ) ;
399     }
400     
401     public INTERNAL JavaDoc namingCtxRebindAlreadyBound( Throwable JavaDoc t ) {
402         return namingCtxRebindAlreadyBound( CompletionStatus.COMPLETED_NO, t ) ;
403     }
404     
405     public INTERNAL JavaDoc namingCtxRebindAlreadyBound( ) {
406         return namingCtxRebindAlreadyBound( CompletionStatus.COMPLETED_NO, null ) ;
407     }
408     
409     public static final int NAMING_CTX_REBINDCTX_ALREADY_BOUND = SUNVMCID.value + 601 ;
410     
411     public INTERNAL JavaDoc namingCtxRebindctxAlreadyBound( CompletionStatus JavaDoc cs, Throwable JavaDoc t ) {
412         INTERNAL JavaDoc exc = new INTERNAL JavaDoc( NAMING_CTX_REBINDCTX_ALREADY_BOUND, cs ) ;
413         if (t != null)
414             exc.initCause( t ) ;
415         
416         if (logger.isLoggable( Level.WARNING )) {
417             Object JavaDoc[] parameters = null ;
418             doLog( Level.WARNING, "NAMING.namingCtxRebindctxAlreadyBound",
419                 parameters, NamingSystemException.class, exc ) ;
420         }
421         
422         return exc ;
423     }
424     
425     public INTERNAL JavaDoc namingCtxRebindctxAlreadyBound( CompletionStatus JavaDoc cs ) {
426         return namingCtxRebindctxAlreadyBound( cs, null ) ;
427     }
428     
429     public INTERNAL JavaDoc namingCtxRebindctxAlreadyBound( Throwable JavaDoc t ) {
430         return namingCtxRebindctxAlreadyBound( CompletionStatus.COMPLETED_NO, t ) ;
431     }
432     
433     public INTERNAL JavaDoc namingCtxRebindctxAlreadyBound( ) {
434         return namingCtxRebindctxAlreadyBound( CompletionStatus.COMPLETED_NO, null ) ;
435     }
436     
437     public static final int NAMING_CTX_BAD_BINDINGTYPE = SUNVMCID.value + 602 ;
438     
439     public INTERNAL JavaDoc namingCtxBadBindingtype( CompletionStatus JavaDoc cs, Throwable JavaDoc t ) {
440         INTERNAL JavaDoc exc = new INTERNAL JavaDoc( NAMING_CTX_BAD_BINDINGTYPE, cs ) ;
441         if (t != null)
442             exc.initCause( t ) ;
443         
444         if (logger.isLoggable( Level.WARNING )) {
445             Object JavaDoc[] parameters = null ;
446             doLog( Level.WARNING, "NAMING.namingCtxBadBindingtype",
447                 parameters, NamingSystemException.class, exc ) ;
448         }
449         
450         return exc ;
451     }
452     
453     public INTERNAL JavaDoc namingCtxBadBindingtype( CompletionStatus JavaDoc cs ) {
454         return namingCtxBadBindingtype( cs, null ) ;
455     }
456     
457     public INTERNAL JavaDoc namingCtxBadBindingtype( Throwable JavaDoc t ) {
458         return namingCtxBadBindingtype( CompletionStatus.COMPLETED_NO, t ) ;
459     }
460     
461     public INTERNAL JavaDoc namingCtxBadBindingtype( ) {
462         return namingCtxBadBindingtype( CompletionStatus.COMPLETED_NO, null ) ;
463     }
464     
465     public static final int NAMING_CTX_RESOLVE_CANNOT_NARROW_TO_CTX = SUNVMCID.value + 603 ;
466     
467     public INTERNAL JavaDoc namingCtxResolveCannotNarrowToCtx( CompletionStatus JavaDoc cs, Throwable JavaDoc t ) {
468         INTERNAL JavaDoc exc = new INTERNAL JavaDoc( NAMING_CTX_RESOLVE_CANNOT_NARROW_TO_CTX, cs ) ;
469         if (t != null)
470             exc.initCause( t ) ;
471         
472         if (logger.isLoggable( Level.WARNING )) {
473             Object JavaDoc[] parameters = null ;
474             doLog( Level.WARNING, "NAMING.namingCtxResolveCannotNarrowToCtx",
475                 parameters, NamingSystemException.class, exc ) ;
476         }
477         
478         return exc ;
479     }
480     
481     public INTERNAL JavaDoc namingCtxResolveCannotNarrowToCtx( CompletionStatus JavaDoc cs ) {
482         return namingCtxResolveCannotNarrowToCtx( cs, null ) ;
483     }
484     
485     public INTERNAL JavaDoc namingCtxResolveCannotNarrowToCtx( Throwable JavaDoc t ) {
486         return namingCtxResolveCannotNarrowToCtx( CompletionStatus.COMPLETED_NO, t ) ;
487     }
488     
489     public INTERNAL JavaDoc namingCtxResolveCannotNarrowToCtx( ) {
490         return namingCtxResolveCannotNarrowToCtx( CompletionStatus.COMPLETED_NO, null ) ;
491     }
492     
493     public static final int NAMING_CTX_BINDING_ITERATOR_CREATE = SUNVMCID.value + 604 ;
494     
495     public INTERNAL JavaDoc namingCtxBindingIteratorCreate( CompletionStatus JavaDoc cs, Throwable JavaDoc t ) {
496         INTERNAL JavaDoc exc = new INTERNAL JavaDoc( NAMING_CTX_BINDING_ITERATOR_CREATE, cs ) ;
497         if (t != null)
498             exc.initCause( t ) ;
499         
500         if (logger.isLoggable( Level.WARNING )) {
501             Object JavaDoc[] parameters = null ;
502             doLog( Level.WARNING, "NAMING.namingCtxBindingIteratorCreate",
503                 parameters, NamingSystemException.class, exc ) ;
504         }
505         
506         return exc ;
507     }
508     
509     public INTERNAL JavaDoc namingCtxBindingIteratorCreate( CompletionStatus JavaDoc cs ) {
510         return namingCtxBindingIteratorCreate( cs, null ) ;
511     }
512     
513     public INTERNAL JavaDoc namingCtxBindingIteratorCreate( Throwable JavaDoc t ) {
514         return namingCtxBindingIteratorCreate( CompletionStatus.COMPLETED_NO, t ) ;
515     }
516     
517     public INTERNAL JavaDoc namingCtxBindingIteratorCreate( ) {
518         return namingCtxBindingIteratorCreate( CompletionStatus.COMPLETED_NO, null ) ;
519     }
520     
521     public static final int TRANS_NC_BIND_ALREADY_BOUND = SUNVMCID.value + 700 ;
522     
523     public INTERNAL JavaDoc transNcBindAlreadyBound( CompletionStatus JavaDoc cs, Throwable JavaDoc t ) {
524         INTERNAL JavaDoc exc = new INTERNAL JavaDoc( TRANS_NC_BIND_ALREADY_BOUND, cs ) ;
525         if (t != null)
526             exc.initCause( t ) ;
527         
528         if (logger.isLoggable( Level.WARNING )) {
529             Object JavaDoc[] parameters = null ;
530             doLog( Level.WARNING, "NAMING.transNcBindAlreadyBound",
531                 parameters, NamingSystemException.class, exc ) ;
532         }
533         
534         return exc ;
535     }
536     
537     public INTERNAL JavaDoc transNcBindAlreadyBound( CompletionStatus JavaDoc cs ) {
538         return transNcBindAlreadyBound( cs, null ) ;
539     }
540     
541     public INTERNAL JavaDoc transNcBindAlreadyBound( Throwable JavaDoc t ) {
542         return transNcBindAlreadyBound( CompletionStatus.COMPLETED_NO, t ) ;
543     }
544     
545     public INTERNAL JavaDoc transNcBindAlreadyBound( ) {
546         return transNcBindAlreadyBound( CompletionStatus.COMPLETED_NO, null ) ;
547     }
548     
549     public static final int TRANS_NC_LIST_GOT_EXC = SUNVMCID.value + 701 ;
550     
551     public INTERNAL JavaDoc transNcListGotExc( CompletionStatus JavaDoc cs, Throwable JavaDoc t ) {
552         INTERNAL JavaDoc exc = new INTERNAL JavaDoc( TRANS_NC_LIST_GOT_EXC, cs ) ;
553         if (t != null)
554             exc.initCause( t ) ;
555         
556         if (logger.isLoggable( Level.WARNING )) {
557             Object JavaDoc[] parameters = null ;
558             doLog( Level.WARNING, "NAMING.transNcListGotExc",
559                 parameters, NamingSystemException.class, exc ) ;
560         }
561         
562         return exc ;
563     }
564     
565     public INTERNAL JavaDoc transNcListGotExc( CompletionStatus JavaDoc cs ) {
566         return transNcListGotExc( cs, null ) ;
567     }
568     
569     public INTERNAL JavaDoc transNcListGotExc( Throwable JavaDoc t ) {
570         return transNcListGotExc( CompletionStatus.COMPLETED_NO, t ) ;
571     }
572     
573     public INTERNAL JavaDoc transNcListGotExc( ) {
574         return transNcListGotExc( CompletionStatus.COMPLETED_NO, null ) ;
575     }
576     
577     public static final int TRANS_NC_NEWCTX_GOT_EXC = SUNVMCID.value + 702 ;
578     
579     public INTERNAL JavaDoc transNcNewctxGotExc( CompletionStatus JavaDoc cs, Throwable JavaDoc t ) {
580         INTERNAL JavaDoc exc = new INTERNAL JavaDoc( TRANS_NC_NEWCTX_GOT_EXC, cs ) ;
581         if (t != null)
582             exc.initCause( t ) ;
583         
584         if (logger.isLoggable( Level.WARNING )) {
585             Object JavaDoc[] parameters = null ;
586             doLog( Level.WARNING, "NAMING.transNcNewctxGotExc",
587                 parameters, NamingSystemException.class, exc ) ;
588         }
589         
590         return exc ;
591     }
592     
593     public INTERNAL JavaDoc transNcNewctxGotExc( CompletionStatus JavaDoc cs ) {
594         return transNcNewctxGotExc( cs, null ) ;
595     }
596     
597     public INTERNAL JavaDoc transNcNewctxGotExc( Throwable JavaDoc t ) {
598         return transNcNewctxGotExc( CompletionStatus.COMPLETED_NO, t ) ;
599     }
600     
601     public INTERNAL JavaDoc transNcNewctxGotExc( ) {
602         return transNcNewctxGotExc( CompletionStatus.COMPLETED_NO, null ) ;
603     }
604     
605     public static final int TRANS_NC_DESTROY_GOT_EXC = SUNVMCID.value + 703 ;
606     
607     public INTERNAL JavaDoc transNcDestroyGotExc( CompletionStatus JavaDoc cs, Throwable JavaDoc t ) {
608         INTERNAL JavaDoc exc = new INTERNAL JavaDoc( TRANS_NC_DESTROY_GOT_EXC, cs ) ;
609         if (t != null)
610             exc.initCause( t ) ;
611         
612         if (logger.isLoggable( Level.WARNING )) {
613             Object JavaDoc[] parameters = null ;
614             doLog( Level.WARNING, "NAMING.transNcDestroyGotExc",
615                 parameters, NamingSystemException.class, exc ) ;
616         }
617         
618         return exc ;
619     }
620     
621     public INTERNAL JavaDoc transNcDestroyGotExc( CompletionStatus JavaDoc cs ) {
622         return transNcDestroyGotExc( cs, null ) ;
623     }
624     
625     public INTERNAL JavaDoc transNcDestroyGotExc( Throwable JavaDoc t ) {
626         return transNcDestroyGotExc( CompletionStatus.COMPLETED_NO, t ) ;
627     }
628     
629     public INTERNAL JavaDoc transNcDestroyGotExc( ) {
630         return transNcDestroyGotExc( CompletionStatus.COMPLETED_NO, null ) ;
631     }
632     
633     public static final int INS_BAD_SCHEME_NAME = SUNVMCID.value + 705 ;
634     
635     public INTERNAL JavaDoc insBadSchemeName( CompletionStatus JavaDoc cs, Throwable JavaDoc t ) {
636         INTERNAL JavaDoc exc = new INTERNAL JavaDoc( INS_BAD_SCHEME_NAME, cs ) ;
637         if (t != null)
638             exc.initCause( t ) ;
639         
640         if (logger.isLoggable( Level.WARNING )) {
641             Object JavaDoc[] parameters = null ;
642             doLog( Level.WARNING, "NAMING.insBadSchemeName",
643                 parameters, NamingSystemException.class, exc ) ;
644         }
645         
646         return exc ;
647     }
648     
649     public INTERNAL JavaDoc insBadSchemeName( CompletionStatus JavaDoc cs ) {
650         return insBadSchemeName( cs, null ) ;
651     }
652     
653     public INTERNAL JavaDoc insBadSchemeName( Throwable JavaDoc t ) {
654         return insBadSchemeName( CompletionStatus.COMPLETED_NO, t ) ;
655     }
656     
657     public INTERNAL JavaDoc insBadSchemeName( ) {
658         return insBadSchemeName( CompletionStatus.COMPLETED_NO, null ) ;
659     }
660     
661     public static final int INS_BAD_SCHEME_SPECIFIC_PART = SUNVMCID.value + 707 ;
662     
663     public INTERNAL JavaDoc insBadSchemeSpecificPart( CompletionStatus JavaDoc cs, Throwable JavaDoc t ) {
664         INTERNAL JavaDoc exc = new INTERNAL JavaDoc( INS_BAD_SCHEME_SPECIFIC_PART, cs ) ;
665         if (t != null)
666             exc.initCause( t ) ;
667         
668         if (logger.isLoggable( Level.WARNING )) {
669             Object JavaDoc[] parameters = null ;
670             doLog( Level.WARNING, "NAMING.insBadSchemeSpecificPart",
671                 parameters, NamingSystemException.class, exc ) ;
672         }
673         
674         return exc ;
675     }
676     
677     public INTERNAL JavaDoc insBadSchemeSpecificPart( CompletionStatus JavaDoc cs ) {
678         return insBadSchemeSpecificPart( cs, null ) ;
679     }
680     
681     public INTERNAL JavaDoc insBadSchemeSpecificPart( Throwable JavaDoc t ) {
682         return insBadSchemeSpecificPart( CompletionStatus.COMPLETED_NO, t ) ;
683     }
684     
685     public INTERNAL JavaDoc insBadSchemeSpecificPart( ) {
686         return insBadSchemeSpecificPart( CompletionStatus.COMPLETED_NO, null ) ;
687     }
688     
689     public static final int INS_OTHER = SUNVMCID.value + 708 ;
690     
691     public INTERNAL JavaDoc insOther( CompletionStatus JavaDoc cs, Throwable JavaDoc t ) {
692         INTERNAL JavaDoc exc = new INTERNAL JavaDoc( INS_OTHER, cs ) ;
693         if (t != null)
694             exc.initCause( t ) ;
695         
696         if (logger.isLoggable( Level.WARNING )) {
697             Object JavaDoc[] parameters = null ;
698             doLog( Level.WARNING, "NAMING.insOther",
699                 parameters, NamingSystemException.class, exc ) ;
700         }
701         
702         return exc ;
703     }
704     
705     public INTERNAL JavaDoc insOther( CompletionStatus JavaDoc cs ) {
706         return insOther( cs, null ) ;
707     }
708     
709     public INTERNAL JavaDoc insOther( Throwable JavaDoc t ) {
710         return insOther( CompletionStatus.COMPLETED_NO, t ) ;
711     }
712     
713     public INTERNAL JavaDoc insOther( ) {
714         return insOther( CompletionStatus.COMPLETED_NO, null ) ;
715     }
716     
717     
718 }
719
Popular Tags