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 Wed Sep 15 03:50:22 PDT 2004
  5. package com.sun.corba.se.impl.logging ;
  6. import java.util.logging.Logger ;
  7. import java.util.logging.Level ;
  8. import org.omg.CORBA.OMGVMCID ;
  9. import com.sun.corba.se.impl.util.SUNVMCID ;
  10. import org.omg.CORBA.CompletionStatus ;
  11. import org.omg.CORBA.SystemException ;
  12. import com.sun.corba.se.spi.orb.ORB ;
  13. import com.sun.corba.se.spi.logging.LogWrapperFactory;
  14. import com.sun.corba.se.spi.logging.LogWrapperBase;
  15. import org.omg.CORBA.BAD_PARAM ;
  16. import org.omg.CORBA.UNKNOWN ;
  17. import org.omg.CORBA.INITIALIZE ;
  18. import org.omg.CORBA.INTERNAL ;
  19. public class NamingSystemException extends LogWrapperBase {
  20. public NamingSystemException( Logger logger )
  21. {
  22. super( logger ) ;
  23. }
  24. private static LogWrapperFactory factory = new LogWrapperFactory() {
  25. public LogWrapperBase create( Logger logger )
  26. {
  27. return new NamingSystemException( logger ) ;
  28. }
  29. } ;
  30. public static NamingSystemException get( ORB orb, String logDomain )
  31. {
  32. NamingSystemException wrapper =
  33. (NamingSystemException) orb.getLogWrapper( logDomain,
  34. "NAMING", factory ) ;
  35. return wrapper ;
  36. }
  37. public static NamingSystemException get( String logDomain )
  38. {
  39. NamingSystemException wrapper =
  40. (NamingSystemException) ORB.staticGetLogWrapper( logDomain,
  41. "NAMING", factory ) ;
  42. return wrapper ;
  43. }
  44. ///////////////////////////////////////////////////////////
  45. // BAD_PARAM
  46. ///////////////////////////////////////////////////////////
  47. public static final int TRANSIENT_NAME_SERVER_BAD_PORT = SUNVMCID.value + 600 ;
  48. public BAD_PARAM transientNameServerBadPort( CompletionStatus cs, Throwable t ) {
  49. BAD_PARAM exc = new BAD_PARAM( TRANSIENT_NAME_SERVER_BAD_PORT, cs ) ;
  50. if (t != null)
  51. exc.initCause( t ) ;
  52. if (logger.isLoggable( Level.WARNING )) {
  53. Object[] parameters = null ;
  54. doLog( Level.WARNING, "NAMING.transientNameServerBadPort",
  55. parameters, NamingSystemException.class, exc ) ;
  56. }
  57. return exc ;
  58. }
  59. public BAD_PARAM transientNameServerBadPort( CompletionStatus cs ) {
  60. return transientNameServerBadPort( cs, null ) ;
  61. }
  62. public BAD_PARAM transientNameServerBadPort( Throwable t ) {
  63. return transientNameServerBadPort( CompletionStatus.COMPLETED_NO, t ) ;
  64. }
  65. public BAD_PARAM transientNameServerBadPort( ) {
  66. return transientNameServerBadPort( CompletionStatus.COMPLETED_NO, null ) ;
  67. }
  68. public static final int TRANSIENT_NAME_SERVER_BAD_HOST = SUNVMCID.value + 601 ;
  69. public BAD_PARAM transientNameServerBadHost( CompletionStatus cs, Throwable t ) {
  70. BAD_PARAM exc = new BAD_PARAM( TRANSIENT_NAME_SERVER_BAD_HOST, cs ) ;
  71. if (t != null)
  72. exc.initCause( t ) ;
  73. if (logger.isLoggable( Level.WARNING )) {
  74. Object[] parameters = null ;
  75. doLog( Level.WARNING, "NAMING.transientNameServerBadHost",
  76. parameters, NamingSystemException.class, exc ) ;
  77. }
  78. return exc ;
  79. }
  80. public BAD_PARAM transientNameServerBadHost( CompletionStatus cs ) {
  81. return transientNameServerBadHost( cs, null ) ;
  82. }
  83. public BAD_PARAM transientNameServerBadHost( Throwable t ) {
  84. return transientNameServerBadHost( CompletionStatus.COMPLETED_NO, t ) ;
  85. }
  86. public BAD_PARAM transientNameServerBadHost( ) {
  87. return transientNameServerBadHost( CompletionStatus.COMPLETED_NO, null ) ;
  88. }
  89. public static final int OBJECT_IS_NULL = SUNVMCID.value + 602 ;
  90. public BAD_PARAM objectIsNull( CompletionStatus cs, Throwable t ) {
  91. BAD_PARAM exc = new BAD_PARAM( OBJECT_IS_NULL, cs ) ;
  92. if (t != null)
  93. exc.initCause( t ) ;
  94. if (logger.isLoggable( Level.WARNING )) {
  95. Object[] parameters = null ;
  96. doLog( Level.WARNING, "NAMING.objectIsNull",
  97. parameters, NamingSystemException.class, exc ) ;
  98. }
  99. return exc ;
  100. }
  101. public BAD_PARAM objectIsNull( CompletionStatus cs ) {
  102. return objectIsNull( cs, null ) ;
  103. }
  104. public BAD_PARAM objectIsNull( Throwable t ) {
  105. return objectIsNull( CompletionStatus.COMPLETED_NO, t ) ;
  106. }
  107. public BAD_PARAM objectIsNull( ) {
  108. return objectIsNull( CompletionStatus.COMPLETED_NO, null ) ;
  109. }
  110. public static final int INS_BAD_ADDRESS = SUNVMCID.value + 603 ;
  111. public BAD_PARAM insBadAddress( CompletionStatus cs, Throwable t ) {
  112. BAD_PARAM exc = new BAD_PARAM( INS_BAD_ADDRESS, cs ) ;
  113. if (t != null)
  114. exc.initCause( t ) ;
  115. if (logger.isLoggable( Level.WARNING )) {
  116. Object[] parameters = null ;
  117. doLog( Level.WARNING, "NAMING.insBadAddress",
  118. parameters, NamingSystemException.class, exc ) ;
  119. }
  120. return exc ;
  121. }
  122. public BAD_PARAM insBadAddress( CompletionStatus cs ) {
  123. return insBadAddress( cs, null ) ;
  124. }
  125. public BAD_PARAM insBadAddress( Throwable t ) {
  126. return insBadAddress( CompletionStatus.COMPLETED_NO, t ) ;
  127. }
  128. public BAD_PARAM insBadAddress( ) {
  129. return insBadAddress( CompletionStatus.COMPLETED_NO, null ) ;
  130. }
  131. ///////////////////////////////////////////////////////////
  132. // UNKNOWN
  133. ///////////////////////////////////////////////////////////
  134. public static final int BIND_UPDATE_CONTEXT_FAILED = SUNVMCID.value + 600 ;
  135. public UNKNOWN bindUpdateContextFailed( CompletionStatus cs, Throwable t ) {
  136. UNKNOWN exc = new UNKNOWN( BIND_UPDATE_CONTEXT_FAILED, cs ) ;
  137. if (t != null)
  138. exc.initCause( t ) ;
  139. if (logger.isLoggable( Level.WARNING )) {
  140. Object[] parameters = null ;
  141. doLog( Level.WARNING, "NAMING.bindUpdateContextFailed",
  142. parameters, NamingSystemException.class, exc ) ;
  143. }
  144. return exc ;
  145. }
  146. public UNKNOWN bindUpdateContextFailed( CompletionStatus cs ) {
  147. return bindUpdateContextFailed( cs, null ) ;
  148. }
  149. public UNKNOWN bindUpdateContextFailed( Throwable t ) {
  150. return bindUpdateContextFailed( CompletionStatus.COMPLETED_NO, t ) ;
  151. }
  152. public UNKNOWN bindUpdateContextFailed( ) {
  153. return bindUpdateContextFailed( CompletionStatus.COMPLETED_NO, null ) ;
  154. }
  155. public static final int BIND_FAILURE = SUNVMCID.value + 601 ;
  156. public UNKNOWN bindFailure( CompletionStatus cs, Throwable t ) {
  157. UNKNOWN exc = new UNKNOWN( BIND_FAILURE, cs ) ;
  158. if (t != null)
  159. exc.initCause( t ) ;
  160. if (logger.isLoggable( Level.WARNING )) {
  161. Object[] parameters = null ;
  162. doLog( Level.WARNING, "NAMING.bindFailure",
  163. parameters, NamingSystemException.class, exc ) ;
  164. }
  165. return exc ;
  166. }
  167. public UNKNOWN bindFailure( CompletionStatus cs ) {
  168. return bindFailure( cs, null ) ;
  169. }
  170. public UNKNOWN bindFailure( Throwable t ) {
  171. return bindFailure( CompletionStatus.COMPLETED_NO, t ) ;
  172. }
  173. public UNKNOWN bindFailure( ) {
  174. return bindFailure( CompletionStatus.COMPLETED_NO, null ) ;
  175. }
  176. public static final int RESOLVE_CONVERSION_FAILURE = SUNVMCID.value + 602 ;
  177. public UNKNOWN resolveConversionFailure( CompletionStatus cs, Throwable t ) {
  178. UNKNOWN exc = new UNKNOWN( RESOLVE_CONVERSION_FAILURE, cs ) ;
  179. if (t != null)
  180. exc.initCause( t ) ;
  181. if (logger.isLoggable( Level.WARNING )) {
  182. Object[] parameters = null ;
  183. doLog( Level.WARNING, "NAMING.resolveConversionFailure",
  184. parameters, NamingSystemException.class, exc ) ;
  185. }
  186. return exc ;
  187. }
  188. public UNKNOWN resolveConversionFailure( CompletionStatus cs ) {
  189. return resolveConversionFailure( cs, null ) ;
  190. }
  191. public UNKNOWN resolveConversionFailure( Throwable t ) {
  192. return resolveConversionFailure( CompletionStatus.COMPLETED_NO, t ) ;
  193. }
  194. public UNKNOWN resolveConversionFailure( ) {
  195. return resolveConversionFailure( CompletionStatus.COMPLETED_NO, null ) ;
  196. }
  197. public static final int RESOLVE_FAILURE = SUNVMCID.value + 603 ;
  198. public UNKNOWN resolveFailure( CompletionStatus cs, Throwable t ) {
  199. UNKNOWN exc = new UNKNOWN( RESOLVE_FAILURE, cs ) ;
  200. if (t != null)
  201. exc.initCause( t ) ;
  202. if (logger.isLoggable( Level.WARNING )) {
  203. Object[] parameters = null ;
  204. doLog( Level.WARNING, "NAMING.resolveFailure",
  205. parameters, NamingSystemException.class, exc ) ;
  206. }
  207. return exc ;
  208. }
  209. public UNKNOWN resolveFailure( CompletionStatus cs ) {
  210. return resolveFailure( cs, null ) ;
  211. }
  212. public UNKNOWN resolveFailure( Throwable t ) {
  213. return resolveFailure( CompletionStatus.COMPLETED_NO, t ) ;
  214. }
  215. public UNKNOWN resolveFailure( ) {
  216. return resolveFailure( CompletionStatus.COMPLETED_NO, null ) ;
  217. }
  218. public static final int UNBIND_FAILURE = SUNVMCID.value + 604 ;
  219. public UNKNOWN unbindFailure( CompletionStatus cs, Throwable t ) {
  220. UNKNOWN exc = new UNKNOWN( UNBIND_FAILURE, cs ) ;
  221. if (t != null)
  222. exc.initCause( t ) ;
  223. if (logger.isLoggable( Level.WARNING )) {
  224. Object[] parameters = null ;
  225. doLog( Level.WARNING, "NAMING.unbindFailure",
  226. parameters, NamingSystemException.class, exc ) ;
  227. }
  228. return exc ;
  229. }
  230. public UNKNOWN unbindFailure( CompletionStatus cs ) {
  231. return unbindFailure( cs, null ) ;
  232. }
  233. public UNKNOWN unbindFailure( Throwable t ) {
  234. return unbindFailure( CompletionStatus.COMPLETED_NO, t ) ;
  235. }
  236. public UNKNOWN unbindFailure( ) {
  237. return unbindFailure( CompletionStatus.COMPLETED_NO, null ) ;
  238. }
  239. ///////////////////////////////////////////////////////////
  240. // INITIALIZE
  241. ///////////////////////////////////////////////////////////
  242. public static final int TRANS_NS_CANNOT_CREATE_INITIAL_NC_SYS = SUNVMCID.value + 650 ;
  243. public INITIALIZE transNsCannotCreateInitialNcSys( CompletionStatus cs, Throwable t ) {
  244. INITIALIZE exc = new INITIALIZE( TRANS_NS_CANNOT_CREATE_INITIAL_NC_SYS, cs ) ;
  245. if (t != null)
  246. exc.initCause( t ) ;
  247. if (logger.isLoggable( Level.WARNING )) {
  248. Object[] parameters = null ;
  249. doLog( Level.WARNING, "NAMING.transNsCannotCreateInitialNcSys",
  250. parameters, NamingSystemException.class, exc ) ;
  251. }
  252. return exc ;
  253. }
  254. public INITIALIZE transNsCannotCreateInitialNcSys( CompletionStatus cs ) {
  255. return transNsCannotCreateInitialNcSys( cs, null ) ;
  256. }
  257. public INITIALIZE transNsCannotCreateInitialNcSys( Throwable t ) {
  258. return transNsCannotCreateInitialNcSys( CompletionStatus.COMPLETED_NO, t ) ;
  259. }
  260. public INITIALIZE transNsCannotCreateInitialNcSys( ) {
  261. return transNsCannotCreateInitialNcSys( CompletionStatus.COMPLETED_NO, null ) ;
  262. }
  263. public static final int TRANS_NS_CANNOT_CREATE_INITIAL_NC = SUNVMCID.value + 651 ;
  264. public INITIALIZE transNsCannotCreateInitialNc( CompletionStatus cs, Throwable t ) {
  265. INITIALIZE exc = new INITIALIZE( TRANS_NS_CANNOT_CREATE_INITIAL_NC, cs ) ;
  266. if (t != null)
  267. exc.initCause( t ) ;
  268. if (logger.isLoggable( Level.WARNING )) {
  269. Object[] parameters = null ;
  270. doLog( Level.WARNING, "NAMING.transNsCannotCreateInitialNc",
  271. parameters, NamingSystemException.class, exc ) ;
  272. }
  273. return exc ;
  274. }
  275. public INITIALIZE transNsCannotCreateInitialNc( CompletionStatus cs ) {
  276. return transNsCannotCreateInitialNc( cs, null ) ;
  277. }
  278. public INITIALIZE transNsCannotCreateInitialNc( Throwable t ) {
  279. return transNsCannotCreateInitialNc( CompletionStatus.COMPLETED_NO, t ) ;
  280. }
  281. public INITIALIZE transNsCannotCreateInitialNc( ) {
  282. return transNsCannotCreateInitialNc( CompletionStatus.COMPLETED_NO, null ) ;
  283. }
  284. ///////////////////////////////////////////////////////////
  285. // INTERNAL
  286. ///////////////////////////////////////////////////////////
  287. public static final int NAMING_CTX_REBIND_ALREADY_BOUND = SUNVMCID.value + 600 ;
  288. public INTERNAL namingCtxRebindAlreadyBound( CompletionStatus cs, Throwable t ) {
  289. INTERNAL exc = new INTERNAL( NAMING_CTX_REBIND_ALREADY_BOUND, cs ) ;
  290. if (t != null)
  291. exc.initCause( t ) ;
  292. if (logger.isLoggable( Level.WARNING )) {
  293. Object[] parameters = null ;
  294. doLog( Level.WARNING, "NAMING.namingCtxRebindAlreadyBound",
  295. parameters, NamingSystemException.class, exc ) ;
  296. }
  297. return exc ;
  298. }
  299. public INTERNAL namingCtxRebindAlreadyBound( CompletionStatus cs ) {
  300. return namingCtxRebindAlreadyBound( cs, null ) ;
  301. }
  302. public INTERNAL namingCtxRebindAlreadyBound( Throwable t ) {
  303. return namingCtxRebindAlreadyBound( CompletionStatus.COMPLETED_NO, t ) ;
  304. }
  305. public INTERNAL namingCtxRebindAlreadyBound( ) {
  306. return namingCtxRebindAlreadyBound( CompletionStatus.COMPLETED_NO, null ) ;
  307. }
  308. public static final int NAMING_CTX_REBINDCTX_ALREADY_BOUND = SUNVMCID.value + 601 ;
  309. public INTERNAL namingCtxRebindctxAlreadyBound( CompletionStatus cs, Throwable t ) {
  310. INTERNAL exc = new INTERNAL( NAMING_CTX_REBINDCTX_ALREADY_BOUND, cs ) ;
  311. if (t != null)
  312. exc.initCause( t ) ;
  313. if (logger.isLoggable( Level.WARNING )) {
  314. Object[] parameters = null ;
  315. doLog( Level.WARNING, "NAMING.namingCtxRebindctxAlreadyBound",
  316. parameters, NamingSystemException.class, exc ) ;
  317. }
  318. return exc ;
  319. }
  320. public INTERNAL namingCtxRebindctxAlreadyBound( CompletionStatus cs ) {
  321. return namingCtxRebindctxAlreadyBound( cs, null ) ;
  322. }
  323. public INTERNAL namingCtxRebindctxAlreadyBound( Throwable t ) {
  324. return namingCtxRebindctxAlreadyBound( CompletionStatus.COMPLETED_NO, t ) ;
  325. }
  326. public INTERNAL namingCtxRebindctxAlreadyBound( ) {
  327. return namingCtxRebindctxAlreadyBound( CompletionStatus.COMPLETED_NO, null ) ;
  328. }
  329. public static final int NAMING_CTX_BAD_BINDINGTYPE = SUNVMCID.value + 602 ;
  330. public INTERNAL namingCtxBadBindingtype( CompletionStatus cs, Throwable t ) {
  331. INTERNAL exc = new INTERNAL( NAMING_CTX_BAD_BINDINGTYPE, cs ) ;
  332. if (t != null)
  333. exc.initCause( t ) ;
  334. if (logger.isLoggable( Level.WARNING )) {
  335. Object[] parameters = null ;
  336. doLog( Level.WARNING, "NAMING.namingCtxBadBindingtype",
  337. parameters, NamingSystemException.class, exc ) ;
  338. }
  339. return exc ;
  340. }
  341. public INTERNAL namingCtxBadBindingtype( CompletionStatus cs ) {
  342. return namingCtxBadBindingtype( cs, null ) ;
  343. }
  344. public INTERNAL namingCtxBadBindingtype( Throwable t ) {
  345. return namingCtxBadBindingtype( CompletionStatus.COMPLETED_NO, t ) ;
  346. }
  347. public INTERNAL namingCtxBadBindingtype( ) {
  348. return namingCtxBadBindingtype( CompletionStatus.COMPLETED_NO, null ) ;
  349. }
  350. public static final int NAMING_CTX_RESOLVE_CANNOT_NARROW_TO_CTX = SUNVMCID.value + 603 ;
  351. public INTERNAL namingCtxResolveCannotNarrowToCtx( CompletionStatus cs, Throwable t ) {
  352. INTERNAL exc = new INTERNAL( NAMING_CTX_RESOLVE_CANNOT_NARROW_TO_CTX, cs ) ;
  353. if (t != null)
  354. exc.initCause( t ) ;
  355. if (logger.isLoggable( Level.WARNING )) {
  356. Object[] parameters = null ;
  357. doLog( Level.WARNING, "NAMING.namingCtxResolveCannotNarrowToCtx",
  358. parameters, NamingSystemException.class, exc ) ;
  359. }
  360. return exc ;
  361. }
  362. public INTERNAL namingCtxResolveCannotNarrowToCtx( CompletionStatus cs ) {
  363. return namingCtxResolveCannotNarrowToCtx( cs, null ) ;
  364. }
  365. public INTERNAL namingCtxResolveCannotNarrowToCtx( Throwable t ) {
  366. return namingCtxResolveCannotNarrowToCtx( CompletionStatus.COMPLETED_NO, t ) ;
  367. }
  368. public INTERNAL namingCtxResolveCannotNarrowToCtx( ) {
  369. return namingCtxResolveCannotNarrowToCtx( CompletionStatus.COMPLETED_NO, null ) ;
  370. }
  371. public static final int NAMING_CTX_BINDING_ITERATOR_CREATE = SUNVMCID.value + 604 ;
  372. public INTERNAL namingCtxBindingIteratorCreate( CompletionStatus cs, Throwable t ) {
  373. INTERNAL exc = new INTERNAL( NAMING_CTX_BINDING_ITERATOR_CREATE, cs ) ;
  374. if (t != null)
  375. exc.initCause( t ) ;
  376. if (logger.isLoggable( Level.WARNING )) {
  377. Object[] parameters = null ;
  378. doLog( Level.WARNING, "NAMING.namingCtxBindingIteratorCreate",
  379. parameters, NamingSystemException.class, exc ) ;
  380. }
  381. return exc ;
  382. }
  383. public INTERNAL namingCtxBindingIteratorCreate( CompletionStatus cs ) {
  384. return namingCtxBindingIteratorCreate( cs, null ) ;
  385. }
  386. public INTERNAL namingCtxBindingIteratorCreate( Throwable t ) {
  387. return namingCtxBindingIteratorCreate( CompletionStatus.COMPLETED_NO, t ) ;
  388. }
  389. public INTERNAL namingCtxBindingIteratorCreate( ) {
  390. return namingCtxBindingIteratorCreate( CompletionStatus.COMPLETED_NO, null ) ;
  391. }
  392. public static final int TRANS_NC_BIND_ALREADY_BOUND = SUNVMCID.value + 700 ;
  393. public INTERNAL transNcBindAlreadyBound( CompletionStatus cs, Throwable t ) {
  394. INTERNAL exc = new INTERNAL( TRANS_NC_BIND_ALREADY_BOUND, cs ) ;
  395. if (t != null)
  396. exc.initCause( t ) ;
  397. if (logger.isLoggable( Level.WARNING )) {
  398. Object[] parameters = null ;
  399. doLog( Level.WARNING, "NAMING.transNcBindAlreadyBound",
  400. parameters, NamingSystemException.class, exc ) ;
  401. }
  402. return exc ;
  403. }
  404. public INTERNAL transNcBindAlreadyBound( CompletionStatus cs ) {
  405. return transNcBindAlreadyBound( cs, null ) ;
  406. }
  407. public INTERNAL transNcBindAlreadyBound( Throwable t ) {
  408. return transNcBindAlreadyBound( CompletionStatus.COMPLETED_NO, t ) ;
  409. }
  410. public INTERNAL transNcBindAlreadyBound( ) {
  411. return transNcBindAlreadyBound( CompletionStatus.COMPLETED_NO, null ) ;
  412. }
  413. public static final int TRANS_NC_LIST_GOT_EXC = SUNVMCID.value + 701 ;
  414. public INTERNAL transNcListGotExc( CompletionStatus cs, Throwable t ) {
  415. INTERNAL exc = new INTERNAL( TRANS_NC_LIST_GOT_EXC, cs ) ;
  416. if (t != null)
  417. exc.initCause( t ) ;
  418. if (logger.isLoggable( Level.WARNING )) {
  419. Object[] parameters = null ;
  420. doLog( Level.WARNING, "NAMING.transNcListGotExc",
  421. parameters, NamingSystemException.class, exc ) ;
  422. }
  423. return exc ;
  424. }
  425. public INTERNAL transNcListGotExc( CompletionStatus cs ) {
  426. return transNcListGotExc( cs, null ) ;
  427. }
  428. public INTERNAL transNcListGotExc( Throwable t ) {
  429. return transNcListGotExc( CompletionStatus.COMPLETED_NO, t ) ;
  430. }
  431. public INTERNAL transNcListGotExc( ) {
  432. return transNcListGotExc( CompletionStatus.COMPLETED_NO, null ) ;
  433. }
  434. public static final int TRANS_NC_NEWCTX_GOT_EXC = SUNVMCID.value + 702 ;
  435. public INTERNAL transNcNewctxGotExc( CompletionStatus cs, Throwable t ) {
  436. INTERNAL exc = new INTERNAL( TRANS_NC_NEWCTX_GOT_EXC, cs ) ;
  437. if (t != null)
  438. exc.initCause( t ) ;
  439. if (logger.isLoggable( Level.WARNING )) {
  440. Object[] parameters = null ;
  441. doLog( Level.WARNING, "NAMING.transNcNewctxGotExc",
  442. parameters, NamingSystemException.class, exc ) ;
  443. }
  444. return exc ;
  445. }
  446. public INTERNAL transNcNewctxGotExc( CompletionStatus cs ) {
  447. return transNcNewctxGotExc( cs, null ) ;
  448. }
  449. public INTERNAL transNcNewctxGotExc( Throwable t ) {
  450. return transNcNewctxGotExc( CompletionStatus.COMPLETED_NO, t ) ;
  451. }
  452. public INTERNAL transNcNewctxGotExc( ) {
  453. return transNcNewctxGotExc( CompletionStatus.COMPLETED_NO, null ) ;
  454. }
  455. public static final int TRANS_NC_DESTROY_GOT_EXC = SUNVMCID.value + 703 ;
  456. public INTERNAL transNcDestroyGotExc( CompletionStatus cs, Throwable t ) {
  457. INTERNAL exc = new INTERNAL( TRANS_NC_DESTROY_GOT_EXC, cs ) ;
  458. if (t != null)
  459. exc.initCause( t ) ;
  460. if (logger.isLoggable( Level.WARNING )) {
  461. Object[] parameters = null ;
  462. doLog( Level.WARNING, "NAMING.transNcDestroyGotExc",
  463. parameters, NamingSystemException.class, exc ) ;
  464. }
  465. return exc ;
  466. }
  467. public INTERNAL transNcDestroyGotExc( CompletionStatus cs ) {
  468. return transNcDestroyGotExc( cs, null ) ;
  469. }
  470. public INTERNAL transNcDestroyGotExc( Throwable t ) {
  471. return transNcDestroyGotExc( CompletionStatus.COMPLETED_NO, t ) ;
  472. }
  473. public INTERNAL transNcDestroyGotExc( ) {
  474. return transNcDestroyGotExc( CompletionStatus.COMPLETED_NO, null ) ;
  475. }
  476. public static final int INS_BAD_SCHEME_NAME = SUNVMCID.value + 705 ;
  477. public INTERNAL insBadSchemeName( CompletionStatus cs, Throwable t ) {
  478. INTERNAL exc = new INTERNAL( INS_BAD_SCHEME_NAME, cs ) ;
  479. if (t != null)
  480. exc.initCause( t ) ;
  481. if (logger.isLoggable( Level.WARNING )) {
  482. Object[] parameters = null ;
  483. doLog( Level.WARNING, "NAMING.insBadSchemeName",
  484. parameters, NamingSystemException.class, exc ) ;
  485. }
  486. return exc ;
  487. }
  488. public INTERNAL insBadSchemeName( CompletionStatus cs ) {
  489. return insBadSchemeName( cs, null ) ;
  490. }
  491. public INTERNAL insBadSchemeName( Throwable t ) {
  492. return insBadSchemeName( CompletionStatus.COMPLETED_NO, t ) ;
  493. }
  494. public INTERNAL insBadSchemeName( ) {
  495. return insBadSchemeName( CompletionStatus.COMPLETED_NO, null ) ;
  496. }
  497. public static final int INS_BAD_SCHEME_SPECIFIC_PART = SUNVMCID.value + 707 ;
  498. public INTERNAL insBadSchemeSpecificPart( CompletionStatus cs, Throwable t ) {
  499. INTERNAL exc = new INTERNAL( INS_BAD_SCHEME_SPECIFIC_PART, cs ) ;
  500. if (t != null)
  501. exc.initCause( t ) ;
  502. if (logger.isLoggable( Level.WARNING )) {
  503. Object[] parameters = null ;
  504. doLog( Level.WARNING, "NAMING.insBadSchemeSpecificPart",
  505. parameters, NamingSystemException.class, exc ) ;
  506. }
  507. return exc ;
  508. }
  509. public INTERNAL insBadSchemeSpecificPart( CompletionStatus cs ) {
  510. return insBadSchemeSpecificPart( cs, null ) ;
  511. }
  512. public INTERNAL insBadSchemeSpecificPart( Throwable t ) {
  513. return insBadSchemeSpecificPart( CompletionStatus.COMPLETED_NO, t ) ;
  514. }
  515. public INTERNAL insBadSchemeSpecificPart( ) {
  516. return insBadSchemeSpecificPart( CompletionStatus.COMPLETED_NO, null ) ;
  517. }
  518. public static final int INS_OTHER = SUNVMCID.value + 708 ;
  519. public INTERNAL insOther( CompletionStatus cs, Throwable t ) {
  520. INTERNAL exc = new INTERNAL( INS_OTHER, cs ) ;
  521. if (t != null)
  522. exc.initCause( t ) ;
  523. if (logger.isLoggable( Level.WARNING )) {
  524. Object[] parameters = null ;
  525. doLog( Level.WARNING, "NAMING.insOther",
  526. parameters, NamingSystemException.class, exc ) ;
  527. }
  528. return exc ;
  529. }
  530. public INTERNAL insOther( CompletionStatus cs ) {
  531. return insOther( cs, null ) ;
  532. }
  533. public INTERNAL insOther( Throwable t ) {
  534. return insOther( CompletionStatus.COMPLETED_NO, t ) ;
  535. }
  536. public INTERNAL insOther( ) {
  537. return insOther( CompletionStatus.COMPLETED_NO, null ) ;
  538. }
  539. }