1. // Log wrapper class for Sun private system exceptions in group INTERCEPTORS
  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/Interceptors.mc on Wed Sep 15 03:50:21 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.BAD_INV_ORDER ;
  17. import org.omg.CORBA.COMM_FAILURE ;
  18. import org.omg.CORBA.INTERNAL ;
  19. import org.omg.CORBA.NO_IMPLEMENT ;
  20. import org.omg.CORBA.OBJECT_NOT_EXIST ;
  21. import org.omg.CORBA.UNKNOWN ;
  22. public class InterceptorsSystemException extends LogWrapperBase {
  23. public InterceptorsSystemException( Logger logger )
  24. {
  25. super( logger ) ;
  26. }
  27. private static LogWrapperFactory factory = new LogWrapperFactory() {
  28. public LogWrapperBase create( Logger logger )
  29. {
  30. return new InterceptorsSystemException( logger ) ;
  31. }
  32. } ;
  33. public static InterceptorsSystemException get( ORB orb, String logDomain )
  34. {
  35. InterceptorsSystemException wrapper =
  36. (InterceptorsSystemException) orb.getLogWrapper( logDomain,
  37. "INTERCEPTORS", factory ) ;
  38. return wrapper ;
  39. }
  40. public static InterceptorsSystemException get( String logDomain )
  41. {
  42. InterceptorsSystemException wrapper =
  43. (InterceptorsSystemException) ORB.staticGetLogWrapper( logDomain,
  44. "INTERCEPTORS", factory ) ;
  45. return wrapper ;
  46. }
  47. ///////////////////////////////////////////////////////////
  48. // BAD_PARAM
  49. ///////////////////////////////////////////////////////////
  50. public static final int TYPE_OUT_OF_RANGE = SUNVMCID.value + 801 ;
  51. public BAD_PARAM typeOutOfRange( CompletionStatus cs, Throwable t, Object arg0) {
  52. BAD_PARAM exc = new BAD_PARAM( TYPE_OUT_OF_RANGE, cs ) ;
  53. if (t != null)
  54. exc.initCause( t ) ;
  55. if (logger.isLoggable( Level.WARNING )) {
  56. Object[] parameters = new Object[1] ;
  57. parameters[0] = arg0 ;
  58. doLog( Level.WARNING, "INTERCEPTORS.typeOutOfRange",
  59. parameters, InterceptorsSystemException.class, exc ) ;
  60. }
  61. return exc ;
  62. }
  63. public BAD_PARAM typeOutOfRange( CompletionStatus cs, Object arg0) {
  64. return typeOutOfRange( cs, null, arg0 ) ;
  65. }
  66. public BAD_PARAM typeOutOfRange( Throwable t, Object arg0) {
  67. return typeOutOfRange( CompletionStatus.COMPLETED_NO, t, arg0 ) ;
  68. }
  69. public BAD_PARAM typeOutOfRange( Object arg0) {
  70. return typeOutOfRange( CompletionStatus.COMPLETED_NO, null, arg0 ) ;
  71. }
  72. public static final int NAME_NULL = SUNVMCID.value + 802 ;
  73. public BAD_PARAM nameNull( CompletionStatus cs, Throwable t ) {
  74. BAD_PARAM exc = new BAD_PARAM( NAME_NULL, cs ) ;
  75. if (t != null)
  76. exc.initCause( t ) ;
  77. if (logger.isLoggable( Level.WARNING )) {
  78. Object[] parameters = null ;
  79. doLog( Level.WARNING, "INTERCEPTORS.nameNull",
  80. parameters, InterceptorsSystemException.class, exc ) ;
  81. }
  82. return exc ;
  83. }
  84. public BAD_PARAM nameNull( CompletionStatus cs ) {
  85. return nameNull( cs, null ) ;
  86. }
  87. public BAD_PARAM nameNull( Throwable t ) {
  88. return nameNull( CompletionStatus.COMPLETED_NO, t ) ;
  89. }
  90. public BAD_PARAM nameNull( ) {
  91. return nameNull( CompletionStatus.COMPLETED_NO, null ) ;
  92. }
  93. ///////////////////////////////////////////////////////////
  94. // BAD_INV_ORDER
  95. ///////////////////////////////////////////////////////////
  96. public static final int RIR_INVALID_PRE_INIT = SUNVMCID.value + 801 ;
  97. public BAD_INV_ORDER rirInvalidPreInit( CompletionStatus cs, Throwable t ) {
  98. BAD_INV_ORDER exc = new BAD_INV_ORDER( RIR_INVALID_PRE_INIT, cs ) ;
  99. if (t != null)
  100. exc.initCause( t ) ;
  101. if (logger.isLoggable( Level.WARNING )) {
  102. Object[] parameters = null ;
  103. doLog( Level.WARNING, "INTERCEPTORS.rirInvalidPreInit",
  104. parameters, InterceptorsSystemException.class, exc ) ;
  105. }
  106. return exc ;
  107. }
  108. public BAD_INV_ORDER rirInvalidPreInit( CompletionStatus cs ) {
  109. return rirInvalidPreInit( cs, null ) ;
  110. }
  111. public BAD_INV_ORDER rirInvalidPreInit( Throwable t ) {
  112. return rirInvalidPreInit( CompletionStatus.COMPLETED_NO, t ) ;
  113. }
  114. public BAD_INV_ORDER rirInvalidPreInit( ) {
  115. return rirInvalidPreInit( CompletionStatus.COMPLETED_NO, null ) ;
  116. }
  117. public static final int BAD_STATE1 = SUNVMCID.value + 802 ;
  118. public BAD_INV_ORDER badState1( CompletionStatus cs, Throwable t, Object arg0, Object arg1) {
  119. BAD_INV_ORDER exc = new BAD_INV_ORDER( BAD_STATE1, cs ) ;
  120. if (t != null)
  121. exc.initCause( t ) ;
  122. if (logger.isLoggable( Level.WARNING )) {
  123. Object[] parameters = new Object[2] ;
  124. parameters[0] = arg0 ;
  125. parameters[1] = arg1 ;
  126. doLog( Level.WARNING, "INTERCEPTORS.badState1",
  127. parameters, InterceptorsSystemException.class, exc ) ;
  128. }
  129. return exc ;
  130. }
  131. public BAD_INV_ORDER badState1( CompletionStatus cs, Object arg0, Object arg1) {
  132. return badState1( cs, null, arg0, arg1 ) ;
  133. }
  134. public BAD_INV_ORDER badState1( Throwable t, Object arg0, Object arg1) {
  135. return badState1( CompletionStatus.COMPLETED_NO, t, arg0, arg1 ) ;
  136. }
  137. public BAD_INV_ORDER badState1( Object arg0, Object arg1) {
  138. return badState1( CompletionStatus.COMPLETED_NO, null, arg0, arg1 ) ;
  139. }
  140. public static final int BAD_STATE2 = SUNVMCID.value + 803 ;
  141. public BAD_INV_ORDER badState2( CompletionStatus cs, Throwable t, Object arg0, Object arg1, Object arg2) {
  142. BAD_INV_ORDER exc = new BAD_INV_ORDER( BAD_STATE2, cs ) ;
  143. if (t != null)
  144. exc.initCause( t ) ;
  145. if (logger.isLoggable( Level.WARNING )) {
  146. Object[] parameters = new Object[3] ;
  147. parameters[0] = arg0 ;
  148. parameters[1] = arg1 ;
  149. parameters[2] = arg2 ;
  150. doLog( Level.WARNING, "INTERCEPTORS.badState2",
  151. parameters, InterceptorsSystemException.class, exc ) ;
  152. }
  153. return exc ;
  154. }
  155. public BAD_INV_ORDER badState2( CompletionStatus cs, Object arg0, Object arg1, Object arg2) {
  156. return badState2( cs, null, arg0, arg1, arg2 ) ;
  157. }
  158. public BAD_INV_ORDER badState2( Throwable t, Object arg0, Object arg1, Object arg2) {
  159. return badState2( CompletionStatus.COMPLETED_NO, t, arg0, arg1, arg2 ) ;
  160. }
  161. public BAD_INV_ORDER badState2( Object arg0, Object arg1, Object arg2) {
  162. return badState2( CompletionStatus.COMPLETED_NO, null, arg0, arg1, arg2 ) ;
  163. }
  164. ///////////////////////////////////////////////////////////
  165. // COMM_FAILURE
  166. ///////////////////////////////////////////////////////////
  167. public static final int IOEXCEPTION_DURING_CANCEL_REQUEST = SUNVMCID.value + 801 ;
  168. public COMM_FAILURE ioexceptionDuringCancelRequest( CompletionStatus cs, Throwable t ) {
  169. COMM_FAILURE exc = new COMM_FAILURE( IOEXCEPTION_DURING_CANCEL_REQUEST, cs ) ;
  170. if (t != null)
  171. exc.initCause( t ) ;
  172. if (logger.isLoggable( Level.WARNING )) {
  173. Object[] parameters = null ;
  174. doLog( Level.WARNING, "INTERCEPTORS.ioexceptionDuringCancelRequest",
  175. parameters, InterceptorsSystemException.class, exc ) ;
  176. }
  177. return exc ;
  178. }
  179. public COMM_FAILURE ioexceptionDuringCancelRequest( CompletionStatus cs ) {
  180. return ioexceptionDuringCancelRequest( cs, null ) ;
  181. }
  182. public COMM_FAILURE ioexceptionDuringCancelRequest( Throwable t ) {
  183. return ioexceptionDuringCancelRequest( CompletionStatus.COMPLETED_NO, t ) ;
  184. }
  185. public COMM_FAILURE ioexceptionDuringCancelRequest( ) {
  186. return ioexceptionDuringCancelRequest( CompletionStatus.COMPLETED_NO, null ) ;
  187. }
  188. ///////////////////////////////////////////////////////////
  189. // INTERNAL
  190. ///////////////////////////////////////////////////////////
  191. public static final int EXCEPTION_WAS_NULL = SUNVMCID.value + 801 ;
  192. public INTERNAL exceptionWasNull( CompletionStatus cs, Throwable t ) {
  193. INTERNAL exc = new INTERNAL( EXCEPTION_WAS_NULL, cs ) ;
  194. if (t != null)
  195. exc.initCause( t ) ;
  196. if (logger.isLoggable( Level.WARNING )) {
  197. Object[] parameters = null ;
  198. doLog( Level.WARNING, "INTERCEPTORS.exceptionWasNull",
  199. parameters, InterceptorsSystemException.class, exc ) ;
  200. }
  201. return exc ;
  202. }
  203. public INTERNAL exceptionWasNull( CompletionStatus cs ) {
  204. return exceptionWasNull( cs, null ) ;
  205. }
  206. public INTERNAL exceptionWasNull( Throwable t ) {
  207. return exceptionWasNull( CompletionStatus.COMPLETED_NO, t ) ;
  208. }
  209. public INTERNAL exceptionWasNull( ) {
  210. return exceptionWasNull( CompletionStatus.COMPLETED_NO, null ) ;
  211. }
  212. public static final int OBJECT_HAS_NO_DELEGATE = SUNVMCID.value + 802 ;
  213. public INTERNAL objectHasNoDelegate( CompletionStatus cs, Throwable t ) {
  214. INTERNAL exc = new INTERNAL( OBJECT_HAS_NO_DELEGATE, cs ) ;
  215. if (t != null)
  216. exc.initCause( t ) ;
  217. if (logger.isLoggable( Level.WARNING )) {
  218. Object[] parameters = null ;
  219. doLog( Level.WARNING, "INTERCEPTORS.objectHasNoDelegate",
  220. parameters, InterceptorsSystemException.class, exc ) ;
  221. }
  222. return exc ;
  223. }
  224. public INTERNAL objectHasNoDelegate( CompletionStatus cs ) {
  225. return objectHasNoDelegate( cs, null ) ;
  226. }
  227. public INTERNAL objectHasNoDelegate( Throwable t ) {
  228. return objectHasNoDelegate( CompletionStatus.COMPLETED_NO, t ) ;
  229. }
  230. public INTERNAL objectHasNoDelegate( ) {
  231. return objectHasNoDelegate( CompletionStatus.COMPLETED_NO, null ) ;
  232. }
  233. public static final int DELEGATE_NOT_CLIENTSUB = SUNVMCID.value + 803 ;
  234. public INTERNAL delegateNotClientsub( CompletionStatus cs, Throwable t ) {
  235. INTERNAL exc = new INTERNAL( DELEGATE_NOT_CLIENTSUB, cs ) ;
  236. if (t != null)
  237. exc.initCause( t ) ;
  238. if (logger.isLoggable( Level.WARNING )) {
  239. Object[] parameters = null ;
  240. doLog( Level.WARNING, "INTERCEPTORS.delegateNotClientsub",
  241. parameters, InterceptorsSystemException.class, exc ) ;
  242. }
  243. return exc ;
  244. }
  245. public INTERNAL delegateNotClientsub( CompletionStatus cs ) {
  246. return delegateNotClientsub( cs, null ) ;
  247. }
  248. public INTERNAL delegateNotClientsub( Throwable t ) {
  249. return delegateNotClientsub( CompletionStatus.COMPLETED_NO, t ) ;
  250. }
  251. public INTERNAL delegateNotClientsub( ) {
  252. return delegateNotClientsub( CompletionStatus.COMPLETED_NO, null ) ;
  253. }
  254. public static final int OBJECT_NOT_OBJECTIMPL = SUNVMCID.value + 804 ;
  255. public INTERNAL objectNotObjectimpl( CompletionStatus cs, Throwable t ) {
  256. INTERNAL exc = new INTERNAL( OBJECT_NOT_OBJECTIMPL, cs ) ;
  257. if (t != null)
  258. exc.initCause( t ) ;
  259. if (logger.isLoggable( Level.WARNING )) {
  260. Object[] parameters = null ;
  261. doLog( Level.WARNING, "INTERCEPTORS.objectNotObjectimpl",
  262. parameters, InterceptorsSystemException.class, exc ) ;
  263. }
  264. return exc ;
  265. }
  266. public INTERNAL objectNotObjectimpl( CompletionStatus cs ) {
  267. return objectNotObjectimpl( cs, null ) ;
  268. }
  269. public INTERNAL objectNotObjectimpl( Throwable t ) {
  270. return objectNotObjectimpl( CompletionStatus.COMPLETED_NO, t ) ;
  271. }
  272. public INTERNAL objectNotObjectimpl( ) {
  273. return objectNotObjectimpl( CompletionStatus.COMPLETED_NO, null ) ;
  274. }
  275. public static final int EXCEPTION_INVALID = SUNVMCID.value + 805 ;
  276. public INTERNAL exceptionInvalid( CompletionStatus cs, Throwable t ) {
  277. INTERNAL exc = new INTERNAL( EXCEPTION_INVALID, cs ) ;
  278. if (t != null)
  279. exc.initCause( t ) ;
  280. if (logger.isLoggable( Level.WARNING )) {
  281. Object[] parameters = null ;
  282. doLog( Level.WARNING, "INTERCEPTORS.exceptionInvalid",
  283. parameters, InterceptorsSystemException.class, exc ) ;
  284. }
  285. return exc ;
  286. }
  287. public INTERNAL exceptionInvalid( CompletionStatus cs ) {
  288. return exceptionInvalid( cs, null ) ;
  289. }
  290. public INTERNAL exceptionInvalid( Throwable t ) {
  291. return exceptionInvalid( CompletionStatus.COMPLETED_NO, t ) ;
  292. }
  293. public INTERNAL exceptionInvalid( ) {
  294. return exceptionInvalid( CompletionStatus.COMPLETED_NO, null ) ;
  295. }
  296. public static final int REPLY_STATUS_NOT_INIT = SUNVMCID.value + 806 ;
  297. public INTERNAL replyStatusNotInit( CompletionStatus cs, Throwable t ) {
  298. INTERNAL exc = new INTERNAL( REPLY_STATUS_NOT_INIT, cs ) ;
  299. if (t != null)
  300. exc.initCause( t ) ;
  301. if (logger.isLoggable( Level.WARNING )) {
  302. Object[] parameters = null ;
  303. doLog( Level.WARNING, "INTERCEPTORS.replyStatusNotInit",
  304. parameters, InterceptorsSystemException.class, exc ) ;
  305. }
  306. return exc ;
  307. }
  308. public INTERNAL replyStatusNotInit( CompletionStatus cs ) {
  309. return replyStatusNotInit( cs, null ) ;
  310. }
  311. public INTERNAL replyStatusNotInit( Throwable t ) {
  312. return replyStatusNotInit( CompletionStatus.COMPLETED_NO, t ) ;
  313. }
  314. public INTERNAL replyStatusNotInit( ) {
  315. return replyStatusNotInit( CompletionStatus.COMPLETED_NO, null ) ;
  316. }
  317. public static final int EXCEPTION_IN_ARGUMENTS = SUNVMCID.value + 807 ;
  318. public INTERNAL exceptionInArguments( CompletionStatus cs, Throwable t ) {
  319. INTERNAL exc = new INTERNAL( EXCEPTION_IN_ARGUMENTS, cs ) ;
  320. if (t != null)
  321. exc.initCause( t ) ;
  322. if (logger.isLoggable( Level.WARNING )) {
  323. Object[] parameters = null ;
  324. doLog( Level.WARNING, "INTERCEPTORS.exceptionInArguments",
  325. parameters, InterceptorsSystemException.class, exc ) ;
  326. }
  327. return exc ;
  328. }
  329. public INTERNAL exceptionInArguments( CompletionStatus cs ) {
  330. return exceptionInArguments( cs, null ) ;
  331. }
  332. public INTERNAL exceptionInArguments( Throwable t ) {
  333. return exceptionInArguments( CompletionStatus.COMPLETED_NO, t ) ;
  334. }
  335. public INTERNAL exceptionInArguments( ) {
  336. return exceptionInArguments( CompletionStatus.COMPLETED_NO, null ) ;
  337. }
  338. public static final int EXCEPTION_IN_EXCEPTIONS = SUNVMCID.value + 808 ;
  339. public INTERNAL exceptionInExceptions( CompletionStatus cs, Throwable t ) {
  340. INTERNAL exc = new INTERNAL( EXCEPTION_IN_EXCEPTIONS, cs ) ;
  341. if (t != null)
  342. exc.initCause( t ) ;
  343. if (logger.isLoggable( Level.WARNING )) {
  344. Object[] parameters = null ;
  345. doLog( Level.WARNING, "INTERCEPTORS.exceptionInExceptions",
  346. parameters, InterceptorsSystemException.class, exc ) ;
  347. }
  348. return exc ;
  349. }
  350. public INTERNAL exceptionInExceptions( CompletionStatus cs ) {
  351. return exceptionInExceptions( cs, null ) ;
  352. }
  353. public INTERNAL exceptionInExceptions( Throwable t ) {
  354. return exceptionInExceptions( CompletionStatus.COMPLETED_NO, t ) ;
  355. }
  356. public INTERNAL exceptionInExceptions( ) {
  357. return exceptionInExceptions( CompletionStatus.COMPLETED_NO, null ) ;
  358. }
  359. public static final int EXCEPTION_IN_CONTEXTS = SUNVMCID.value + 809 ;
  360. public INTERNAL exceptionInContexts( CompletionStatus cs, Throwable t ) {
  361. INTERNAL exc = new INTERNAL( EXCEPTION_IN_CONTEXTS, cs ) ;
  362. if (t != null)
  363. exc.initCause( t ) ;
  364. if (logger.isLoggable( Level.WARNING )) {
  365. Object[] parameters = null ;
  366. doLog( Level.WARNING, "INTERCEPTORS.exceptionInContexts",
  367. parameters, InterceptorsSystemException.class, exc ) ;
  368. }
  369. return exc ;
  370. }
  371. public INTERNAL exceptionInContexts( CompletionStatus cs ) {
  372. return exceptionInContexts( cs, null ) ;
  373. }
  374. public INTERNAL exceptionInContexts( Throwable t ) {
  375. return exceptionInContexts( CompletionStatus.COMPLETED_NO, t ) ;
  376. }
  377. public INTERNAL exceptionInContexts( ) {
  378. return exceptionInContexts( CompletionStatus.COMPLETED_NO, null ) ;
  379. }
  380. public static final int EXCEPTION_WAS_NULL_2 = SUNVMCID.value + 810 ;
  381. public INTERNAL exceptionWasNull2( CompletionStatus cs, Throwable t ) {
  382. INTERNAL exc = new INTERNAL( EXCEPTION_WAS_NULL_2, cs ) ;
  383. if (t != null)
  384. exc.initCause( t ) ;
  385. if (logger.isLoggable( Level.WARNING )) {
  386. Object[] parameters = null ;
  387. doLog( Level.WARNING, "INTERCEPTORS.exceptionWasNull2",
  388. parameters, InterceptorsSystemException.class, exc ) ;
  389. }
  390. return exc ;
  391. }
  392. public INTERNAL exceptionWasNull2( CompletionStatus cs ) {
  393. return exceptionWasNull2( cs, null ) ;
  394. }
  395. public INTERNAL exceptionWasNull2( Throwable t ) {
  396. return exceptionWasNull2( CompletionStatus.COMPLETED_NO, t ) ;
  397. }
  398. public INTERNAL exceptionWasNull2( ) {
  399. return exceptionWasNull2( CompletionStatus.COMPLETED_NO, null ) ;
  400. }
  401. public static final int SERVANT_INVALID = SUNVMCID.value + 811 ;
  402. public INTERNAL servantInvalid( CompletionStatus cs, Throwable t ) {
  403. INTERNAL exc = new INTERNAL( SERVANT_INVALID, cs ) ;
  404. if (t != null)
  405. exc.initCause( t ) ;
  406. if (logger.isLoggable( Level.WARNING )) {
  407. Object[] parameters = null ;
  408. doLog( Level.WARNING, "INTERCEPTORS.servantInvalid",
  409. parameters, InterceptorsSystemException.class, exc ) ;
  410. }
  411. return exc ;
  412. }
  413. public INTERNAL servantInvalid( CompletionStatus cs ) {
  414. return servantInvalid( cs, null ) ;
  415. }
  416. public INTERNAL servantInvalid( Throwable t ) {
  417. return servantInvalid( CompletionStatus.COMPLETED_NO, t ) ;
  418. }
  419. public INTERNAL servantInvalid( ) {
  420. return servantInvalid( CompletionStatus.COMPLETED_NO, null ) ;
  421. }
  422. public static final int CANT_POP_ONLY_PICURRENT = SUNVMCID.value + 812 ;
  423. public INTERNAL cantPopOnlyPicurrent( CompletionStatus cs, Throwable t ) {
  424. INTERNAL exc = new INTERNAL( CANT_POP_ONLY_PICURRENT, cs ) ;
  425. if (t != null)
  426. exc.initCause( t ) ;
  427. if (logger.isLoggable( Level.WARNING )) {
  428. Object[] parameters = null ;
  429. doLog( Level.WARNING, "INTERCEPTORS.cantPopOnlyPicurrent",
  430. parameters, InterceptorsSystemException.class, exc ) ;
  431. }
  432. return exc ;
  433. }
  434. public INTERNAL cantPopOnlyPicurrent( CompletionStatus cs ) {
  435. return cantPopOnlyPicurrent( cs, null ) ;
  436. }
  437. public INTERNAL cantPopOnlyPicurrent( Throwable t ) {
  438. return cantPopOnlyPicurrent( CompletionStatus.COMPLETED_NO, t ) ;
  439. }
  440. public INTERNAL cantPopOnlyPicurrent( ) {
  441. return cantPopOnlyPicurrent( CompletionStatus.COMPLETED_NO, null ) ;
  442. }
  443. public static final int CANT_POP_ONLY_CURRENT_2 = SUNVMCID.value + 813 ;
  444. public INTERNAL cantPopOnlyCurrent2( CompletionStatus cs, Throwable t ) {
  445. INTERNAL exc = new INTERNAL( CANT_POP_ONLY_CURRENT_2, cs ) ;
  446. if (t != null)
  447. exc.initCause( t ) ;
  448. if (logger.isLoggable( Level.WARNING )) {
  449. Object[] parameters = null ;
  450. doLog( Level.WARNING, "INTERCEPTORS.cantPopOnlyCurrent2",
  451. parameters, InterceptorsSystemException.class, exc ) ;
  452. }
  453. return exc ;
  454. }
  455. public INTERNAL cantPopOnlyCurrent2( CompletionStatus cs ) {
  456. return cantPopOnlyCurrent2( cs, null ) ;
  457. }
  458. public INTERNAL cantPopOnlyCurrent2( Throwable t ) {
  459. return cantPopOnlyCurrent2( CompletionStatus.COMPLETED_NO, t ) ;
  460. }
  461. public INTERNAL cantPopOnlyCurrent2( ) {
  462. return cantPopOnlyCurrent2( CompletionStatus.COMPLETED_NO, null ) ;
  463. }
  464. public static final int PI_DSI_RESULT_IS_NULL = SUNVMCID.value + 814 ;
  465. public INTERNAL piDsiResultIsNull( CompletionStatus cs, Throwable t ) {
  466. INTERNAL exc = new INTERNAL( PI_DSI_RESULT_IS_NULL, cs ) ;
  467. if (t != null)
  468. exc.initCause( t ) ;
  469. if (logger.isLoggable( Level.WARNING )) {
  470. Object[] parameters = null ;
  471. doLog( Level.WARNING, "INTERCEPTORS.piDsiResultIsNull",
  472. parameters, InterceptorsSystemException.class, exc ) ;
  473. }
  474. return exc ;
  475. }
  476. public INTERNAL piDsiResultIsNull( CompletionStatus cs ) {
  477. return piDsiResultIsNull( cs, null ) ;
  478. }
  479. public INTERNAL piDsiResultIsNull( Throwable t ) {
  480. return piDsiResultIsNull( CompletionStatus.COMPLETED_NO, t ) ;
  481. }
  482. public INTERNAL piDsiResultIsNull( ) {
  483. return piDsiResultIsNull( CompletionStatus.COMPLETED_NO, null ) ;
  484. }
  485. public static final int PI_DII_RESULT_IS_NULL = SUNVMCID.value + 815 ;
  486. public INTERNAL piDiiResultIsNull( CompletionStatus cs, Throwable t ) {
  487. INTERNAL exc = new INTERNAL( PI_DII_RESULT_IS_NULL, cs ) ;
  488. if (t != null)
  489. exc.initCause( t ) ;
  490. if (logger.isLoggable( Level.WARNING )) {
  491. Object[] parameters = null ;
  492. doLog( Level.WARNING, "INTERCEPTORS.piDiiResultIsNull",
  493. parameters, InterceptorsSystemException.class, exc ) ;
  494. }
  495. return exc ;
  496. }
  497. public INTERNAL piDiiResultIsNull( CompletionStatus cs ) {
  498. return piDiiResultIsNull( cs, null ) ;
  499. }
  500. public INTERNAL piDiiResultIsNull( Throwable t ) {
  501. return piDiiResultIsNull( CompletionStatus.COMPLETED_NO, t ) ;
  502. }
  503. public INTERNAL piDiiResultIsNull( ) {
  504. return piDiiResultIsNull( CompletionStatus.COMPLETED_NO, null ) ;
  505. }
  506. public static final int EXCEPTION_UNAVAILABLE = SUNVMCID.value + 816 ;
  507. public INTERNAL exceptionUnavailable( CompletionStatus cs, Throwable t ) {
  508. INTERNAL exc = new INTERNAL( EXCEPTION_UNAVAILABLE, cs ) ;
  509. if (t != null)
  510. exc.initCause( t ) ;
  511. if (logger.isLoggable( Level.WARNING )) {
  512. Object[] parameters = null ;
  513. doLog( Level.WARNING, "INTERCEPTORS.exceptionUnavailable",
  514. parameters, InterceptorsSystemException.class, exc ) ;
  515. }
  516. return exc ;
  517. }
  518. public INTERNAL exceptionUnavailable( CompletionStatus cs ) {
  519. return exceptionUnavailable( cs, null ) ;
  520. }
  521. public INTERNAL exceptionUnavailable( Throwable t ) {
  522. return exceptionUnavailable( CompletionStatus.COMPLETED_NO, t ) ;
  523. }
  524. public INTERNAL exceptionUnavailable( ) {
  525. return exceptionUnavailable( CompletionStatus.COMPLETED_NO, null ) ;
  526. }
  527. public static final int CLIENT_INFO_STACK_NULL = SUNVMCID.value + 817 ;
  528. public INTERNAL clientInfoStackNull( CompletionStatus cs, Throwable t ) {
  529. INTERNAL exc = new INTERNAL( CLIENT_INFO_STACK_NULL, cs ) ;
  530. if (t != null)
  531. exc.initCause( t ) ;
  532. if (logger.isLoggable( Level.WARNING )) {
  533. Object[] parameters = null ;
  534. doLog( Level.WARNING, "INTERCEPTORS.clientInfoStackNull",
  535. parameters, InterceptorsSystemException.class, exc ) ;
  536. }
  537. return exc ;
  538. }
  539. public INTERNAL clientInfoStackNull( CompletionStatus cs ) {
  540. return clientInfoStackNull( cs, null ) ;
  541. }
  542. public INTERNAL clientInfoStackNull( Throwable t ) {
  543. return clientInfoStackNull( CompletionStatus.COMPLETED_NO, t ) ;
  544. }
  545. public INTERNAL clientInfoStackNull( ) {
  546. return clientInfoStackNull( CompletionStatus.COMPLETED_NO, null ) ;
  547. }
  548. public static final int SERVER_INFO_STACK_NULL = SUNVMCID.value + 818 ;
  549. public INTERNAL serverInfoStackNull( CompletionStatus cs, Throwable t ) {
  550. INTERNAL exc = new INTERNAL( SERVER_INFO_STACK_NULL, cs ) ;
  551. if (t != null)
  552. exc.initCause( t ) ;
  553. if (logger.isLoggable( Level.WARNING )) {
  554. Object[] parameters = null ;
  555. doLog( Level.WARNING, "INTERCEPTORS.serverInfoStackNull",
  556. parameters, InterceptorsSystemException.class, exc ) ;
  557. }
  558. return exc ;
  559. }
  560. public INTERNAL serverInfoStackNull( CompletionStatus cs ) {
  561. return serverInfoStackNull( cs, null ) ;
  562. }
  563. public INTERNAL serverInfoStackNull( Throwable t ) {
  564. return serverInfoStackNull( CompletionStatus.COMPLETED_NO, t ) ;
  565. }
  566. public INTERNAL serverInfoStackNull( ) {
  567. return serverInfoStackNull( CompletionStatus.COMPLETED_NO, null ) ;
  568. }
  569. public static final int MARK_AND_RESET_FAILED = SUNVMCID.value + 819 ;
  570. public INTERNAL markAndResetFailed( CompletionStatus cs, Throwable t ) {
  571. INTERNAL exc = new INTERNAL( MARK_AND_RESET_FAILED, cs ) ;
  572. if (t != null)
  573. exc.initCause( t ) ;
  574. if (logger.isLoggable( Level.WARNING )) {
  575. Object[] parameters = null ;
  576. doLog( Level.WARNING, "INTERCEPTORS.markAndResetFailed",
  577. parameters, InterceptorsSystemException.class, exc ) ;
  578. }
  579. return exc ;
  580. }
  581. public INTERNAL markAndResetFailed( CompletionStatus cs ) {
  582. return markAndResetFailed( cs, null ) ;
  583. }
  584. public INTERNAL markAndResetFailed( Throwable t ) {
  585. return markAndResetFailed( CompletionStatus.COMPLETED_NO, t ) ;
  586. }
  587. public INTERNAL markAndResetFailed( ) {
  588. return markAndResetFailed( CompletionStatus.COMPLETED_NO, null ) ;
  589. }
  590. public static final int SLOT_TABLE_INVARIANT = SUNVMCID.value + 820 ;
  591. public INTERNAL slotTableInvariant( CompletionStatus cs, Throwable t, Object arg0, Object arg1) {
  592. INTERNAL exc = new INTERNAL( SLOT_TABLE_INVARIANT, cs ) ;
  593. if (t != null)
  594. exc.initCause( t ) ;
  595. if (logger.isLoggable( Level.WARNING )) {
  596. Object[] parameters = new Object[2] ;
  597. parameters[0] = arg0 ;
  598. parameters[1] = arg1 ;
  599. doLog( Level.WARNING, "INTERCEPTORS.slotTableInvariant",
  600. parameters, InterceptorsSystemException.class, exc ) ;
  601. }
  602. return exc ;
  603. }
  604. public INTERNAL slotTableInvariant( CompletionStatus cs, Object arg0, Object arg1) {
  605. return slotTableInvariant( cs, null, arg0, arg1 ) ;
  606. }
  607. public INTERNAL slotTableInvariant( Throwable t, Object arg0, Object arg1) {
  608. return slotTableInvariant( CompletionStatus.COMPLETED_NO, t, arg0, arg1 ) ;
  609. }
  610. public INTERNAL slotTableInvariant( Object arg0, Object arg1) {
  611. return slotTableInvariant( CompletionStatus.COMPLETED_NO, null, arg0, arg1 ) ;
  612. }
  613. public static final int INTERCEPTOR_LIST_LOCKED = SUNVMCID.value + 821 ;
  614. public INTERNAL interceptorListLocked( CompletionStatus cs, Throwable t ) {
  615. INTERNAL exc = new INTERNAL( INTERCEPTOR_LIST_LOCKED, cs ) ;
  616. if (t != null)
  617. exc.initCause( t ) ;
  618. if (logger.isLoggable( Level.WARNING )) {
  619. Object[] parameters = null ;
  620. doLog( Level.WARNING, "INTERCEPTORS.interceptorListLocked",
  621. parameters, InterceptorsSystemException.class, exc ) ;
  622. }
  623. return exc ;
  624. }
  625. public INTERNAL interceptorListLocked( CompletionStatus cs ) {
  626. return interceptorListLocked( cs, null ) ;
  627. }
  628. public INTERNAL interceptorListLocked( Throwable t ) {
  629. return interceptorListLocked( CompletionStatus.COMPLETED_NO, t ) ;
  630. }
  631. public INTERNAL interceptorListLocked( ) {
  632. return interceptorListLocked( CompletionStatus.COMPLETED_NO, null ) ;
  633. }
  634. public static final int SORT_SIZE_MISMATCH = SUNVMCID.value + 822 ;
  635. public INTERNAL sortSizeMismatch( CompletionStatus cs, Throwable t ) {
  636. INTERNAL exc = new INTERNAL( SORT_SIZE_MISMATCH, cs ) ;
  637. if (t != null)
  638. exc.initCause( t ) ;
  639. if (logger.isLoggable( Level.WARNING )) {
  640. Object[] parameters = null ;
  641. doLog( Level.WARNING, "INTERCEPTORS.sortSizeMismatch",
  642. parameters, InterceptorsSystemException.class, exc ) ;
  643. }
  644. return exc ;
  645. }
  646. public INTERNAL sortSizeMismatch( CompletionStatus cs ) {
  647. return sortSizeMismatch( cs, null ) ;
  648. }
  649. public INTERNAL sortSizeMismatch( Throwable t ) {
  650. return sortSizeMismatch( CompletionStatus.COMPLETED_NO, t ) ;
  651. }
  652. public INTERNAL sortSizeMismatch( ) {
  653. return sortSizeMismatch( CompletionStatus.COMPLETED_NO, null ) ;
  654. }
  655. ///////////////////////////////////////////////////////////
  656. // NO_IMPLEMENT
  657. ///////////////////////////////////////////////////////////
  658. public static final int PI_ORB_NOT_POLICY_BASED = SUNVMCID.value + 801 ;
  659. public NO_IMPLEMENT piOrbNotPolicyBased( CompletionStatus cs, Throwable t ) {
  660. NO_IMPLEMENT exc = new NO_IMPLEMENT( PI_ORB_NOT_POLICY_BASED, cs ) ;
  661. if (t != null)
  662. exc.initCause( t ) ;
  663. if (logger.isLoggable( Level.WARNING )) {
  664. Object[] parameters = null ;
  665. doLog( Level.WARNING, "INTERCEPTORS.piOrbNotPolicyBased",
  666. parameters, InterceptorsSystemException.class, exc ) ;
  667. }
  668. return exc ;
  669. }
  670. public NO_IMPLEMENT piOrbNotPolicyBased( CompletionStatus cs ) {
  671. return piOrbNotPolicyBased( cs, null ) ;
  672. }
  673. public NO_IMPLEMENT piOrbNotPolicyBased( Throwable t ) {
  674. return piOrbNotPolicyBased( CompletionStatus.COMPLETED_NO, t ) ;
  675. }
  676. public NO_IMPLEMENT piOrbNotPolicyBased( ) {
  677. return piOrbNotPolicyBased( CompletionStatus.COMPLETED_NO, null ) ;
  678. }
  679. ///////////////////////////////////////////////////////////
  680. // OBJECT_NOT_EXIST
  681. ///////////////////////////////////////////////////////////
  682. public static final int ORBINITINFO_INVALID = SUNVMCID.value + 801 ;
  683. public OBJECT_NOT_EXIST orbinitinfoInvalid( CompletionStatus cs, Throwable t ) {
  684. OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST( ORBINITINFO_INVALID, cs ) ;
  685. if (t != null)
  686. exc.initCause( t ) ;
  687. if (logger.isLoggable( Level.FINE )) {
  688. Object[] parameters = null ;
  689. doLog( Level.FINE, "INTERCEPTORS.orbinitinfoInvalid",
  690. parameters, InterceptorsSystemException.class, exc ) ;
  691. }
  692. return exc ;
  693. }
  694. public OBJECT_NOT_EXIST orbinitinfoInvalid( CompletionStatus cs ) {
  695. return orbinitinfoInvalid( cs, null ) ;
  696. }
  697. public OBJECT_NOT_EXIST orbinitinfoInvalid( Throwable t ) {
  698. return orbinitinfoInvalid( CompletionStatus.COMPLETED_NO, t ) ;
  699. }
  700. public OBJECT_NOT_EXIST orbinitinfoInvalid( ) {
  701. return orbinitinfoInvalid( CompletionStatus.COMPLETED_NO, null ) ;
  702. }
  703. ///////////////////////////////////////////////////////////
  704. // UNKNOWN
  705. ///////////////////////////////////////////////////////////
  706. public static final int UNKNOWN_REQUEST_INVOKE = SUNVMCID.value + 801 ;
  707. public UNKNOWN unknownRequestInvoke( CompletionStatus cs, Throwable t ) {
  708. UNKNOWN exc = new UNKNOWN( UNKNOWN_REQUEST_INVOKE, cs ) ;
  709. if (t != null)
  710. exc.initCause( t ) ;
  711. if (logger.isLoggable( Level.FINE )) {
  712. Object[] parameters = null ;
  713. doLog( Level.FINE, "INTERCEPTORS.unknownRequestInvoke",
  714. parameters, InterceptorsSystemException.class, exc ) ;
  715. }
  716. return exc ;
  717. }
  718. public UNKNOWN unknownRequestInvoke( CompletionStatus cs ) {
  719. return unknownRequestInvoke( cs, null ) ;
  720. }
  721. public UNKNOWN unknownRequestInvoke( Throwable t ) {
  722. return unknownRequestInvoke( CompletionStatus.COMPLETED_NO, t ) ;
  723. }
  724. public UNKNOWN unknownRequestInvoke( ) {
  725. return unknownRequestInvoke( CompletionStatus.COMPLETED_NO, null ) ;
  726. }
  727. }