1. // Log wrapper class for standard exceptions
  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/OMG.mc on Wed Sep 15 03:50:24 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_CONTEXT ;
  16. import org.omg.CORBA.BAD_INV_ORDER ;
  17. import org.omg.CORBA.BAD_OPERATION ;
  18. import org.omg.CORBA.BAD_PARAM ;
  19. import org.omg.CORBA.BAD_TYPECODE ;
  20. import org.omg.CORBA.DATA_CONVERSION ;
  21. import org.omg.CORBA.IMP_LIMIT ;
  22. import org.omg.CORBA.INITIALIZE ;
  23. import org.omg.CORBA.INV_OBJREF ;
  24. import org.omg.CORBA.INV_POLICY ;
  25. import org.omg.CORBA.INTERNAL ;
  26. import org.omg.CORBA.INTF_REPOS ;
  27. import org.omg.CORBA.MARSHAL ;
  28. import org.omg.CORBA.NO_IMPLEMENT ;
  29. import org.omg.CORBA.NO_RESOURCES ;
  30. import org.omg.CORBA.TRANSACTION_ROLLEDBACK ;
  31. import org.omg.CORBA.TRANSIENT ;
  32. import org.omg.CORBA.OBJECT_NOT_EXIST ;
  33. import org.omg.CORBA.OBJ_ADAPTER ;
  34. import org.omg.CORBA.UNKNOWN ;
  35. public class OMGSystemException extends LogWrapperBase {
  36. public OMGSystemException( Logger logger )
  37. {
  38. super( logger ) ;
  39. }
  40. private static LogWrapperFactory factory = new LogWrapperFactory() {
  41. public LogWrapperBase create( Logger logger )
  42. {
  43. return new OMGSystemException( logger ) ;
  44. }
  45. } ;
  46. public static OMGSystemException get( ORB orb, String logDomain )
  47. {
  48. OMGSystemException wrapper =
  49. (OMGSystemException) orb.getLogWrapper( logDomain,
  50. "OMG", factory ) ;
  51. return wrapper ;
  52. }
  53. public static OMGSystemException get( String logDomain )
  54. {
  55. OMGSystemException wrapper =
  56. (OMGSystemException) ORB.staticGetLogWrapper( logDomain,
  57. "OMG", factory ) ;
  58. return wrapper ;
  59. }
  60. ///////////////////////////////////////////////////////////
  61. // BAD_CONTEXT
  62. ///////////////////////////////////////////////////////////
  63. public static final int IDL_CONTEXT_NOT_FOUND = OMGVMCID.value + 1 ;
  64. public BAD_CONTEXT idlContextNotFound( CompletionStatus cs, Throwable t ) {
  65. BAD_CONTEXT exc = new BAD_CONTEXT( IDL_CONTEXT_NOT_FOUND, cs ) ;
  66. if (t != null)
  67. exc.initCause( t ) ;
  68. if (logger.isLoggable( Level.WARNING )) {
  69. Object[] parameters = null ;
  70. doLog( Level.WARNING, "OMG.idlContextNotFound",
  71. parameters, OMGSystemException.class, exc ) ;
  72. }
  73. return exc ;
  74. }
  75. public BAD_CONTEXT idlContextNotFound( CompletionStatus cs ) {
  76. return idlContextNotFound( cs, null ) ;
  77. }
  78. public BAD_CONTEXT idlContextNotFound( Throwable t ) {
  79. return idlContextNotFound( CompletionStatus.COMPLETED_NO, t ) ;
  80. }
  81. public BAD_CONTEXT idlContextNotFound( ) {
  82. return idlContextNotFound( CompletionStatus.COMPLETED_NO, null ) ;
  83. }
  84. public static final int NO_MATCHING_IDL_CONTEXT = OMGVMCID.value + 2 ;
  85. public BAD_CONTEXT noMatchingIdlContext( CompletionStatus cs, Throwable t ) {
  86. BAD_CONTEXT exc = new BAD_CONTEXT( NO_MATCHING_IDL_CONTEXT, cs ) ;
  87. if (t != null)
  88. exc.initCause( t ) ;
  89. if (logger.isLoggable( Level.WARNING )) {
  90. Object[] parameters = null ;
  91. doLog( Level.WARNING, "OMG.noMatchingIdlContext",
  92. parameters, OMGSystemException.class, exc ) ;
  93. }
  94. return exc ;
  95. }
  96. public BAD_CONTEXT noMatchingIdlContext( CompletionStatus cs ) {
  97. return noMatchingIdlContext( cs, null ) ;
  98. }
  99. public BAD_CONTEXT noMatchingIdlContext( Throwable t ) {
  100. return noMatchingIdlContext( CompletionStatus.COMPLETED_NO, t ) ;
  101. }
  102. public BAD_CONTEXT noMatchingIdlContext( ) {
  103. return noMatchingIdlContext( CompletionStatus.COMPLETED_NO, null ) ;
  104. }
  105. ///////////////////////////////////////////////////////////
  106. // BAD_INV_ORDER
  107. ///////////////////////////////////////////////////////////
  108. public static final int DEP_PREVENT_DESTRUCTION = OMGVMCID.value + 1 ;
  109. public BAD_INV_ORDER depPreventDestruction( CompletionStatus cs, Throwable t ) {
  110. BAD_INV_ORDER exc = new BAD_INV_ORDER( DEP_PREVENT_DESTRUCTION, cs ) ;
  111. if (t != null)
  112. exc.initCause( t ) ;
  113. if (logger.isLoggable( Level.WARNING )) {
  114. Object[] parameters = null ;
  115. doLog( Level.WARNING, "OMG.depPreventDestruction",
  116. parameters, OMGSystemException.class, exc ) ;
  117. }
  118. return exc ;
  119. }
  120. public BAD_INV_ORDER depPreventDestruction( CompletionStatus cs ) {
  121. return depPreventDestruction( cs, null ) ;
  122. }
  123. public BAD_INV_ORDER depPreventDestruction( Throwable t ) {
  124. return depPreventDestruction( CompletionStatus.COMPLETED_NO, t ) ;
  125. }
  126. public BAD_INV_ORDER depPreventDestruction( ) {
  127. return depPreventDestruction( CompletionStatus.COMPLETED_NO, null ) ;
  128. }
  129. public static final int DESTROY_INDESTRUCTIBLE = OMGVMCID.value + 2 ;
  130. public BAD_INV_ORDER destroyIndestructible( CompletionStatus cs, Throwable t ) {
  131. BAD_INV_ORDER exc = new BAD_INV_ORDER( DESTROY_INDESTRUCTIBLE, cs ) ;
  132. if (t != null)
  133. exc.initCause( t ) ;
  134. if (logger.isLoggable( Level.WARNING )) {
  135. Object[] parameters = null ;
  136. doLog( Level.WARNING, "OMG.destroyIndestructible",
  137. parameters, OMGSystemException.class, exc ) ;
  138. }
  139. return exc ;
  140. }
  141. public BAD_INV_ORDER destroyIndestructible( CompletionStatus cs ) {
  142. return destroyIndestructible( cs, null ) ;
  143. }
  144. public BAD_INV_ORDER destroyIndestructible( Throwable t ) {
  145. return destroyIndestructible( CompletionStatus.COMPLETED_NO, t ) ;
  146. }
  147. public BAD_INV_ORDER destroyIndestructible( ) {
  148. return destroyIndestructible( CompletionStatus.COMPLETED_NO, null ) ;
  149. }
  150. public static final int SHUTDOWN_WAIT_FOR_COMPLETION_DEADLOCK = OMGVMCID.value + 3 ;
  151. public BAD_INV_ORDER shutdownWaitForCompletionDeadlock( CompletionStatus cs, Throwable t ) {
  152. BAD_INV_ORDER exc = new BAD_INV_ORDER( SHUTDOWN_WAIT_FOR_COMPLETION_DEADLOCK, cs ) ;
  153. if (t != null)
  154. exc.initCause( t ) ;
  155. if (logger.isLoggable( Level.WARNING )) {
  156. Object[] parameters = null ;
  157. doLog( Level.WARNING, "OMG.shutdownWaitForCompletionDeadlock",
  158. parameters, OMGSystemException.class, exc ) ;
  159. }
  160. return exc ;
  161. }
  162. public BAD_INV_ORDER shutdownWaitForCompletionDeadlock( CompletionStatus cs ) {
  163. return shutdownWaitForCompletionDeadlock( cs, null ) ;
  164. }
  165. public BAD_INV_ORDER shutdownWaitForCompletionDeadlock( Throwable t ) {
  166. return shutdownWaitForCompletionDeadlock( CompletionStatus.COMPLETED_NO, t ) ;
  167. }
  168. public BAD_INV_ORDER shutdownWaitForCompletionDeadlock( ) {
  169. return shutdownWaitForCompletionDeadlock( CompletionStatus.COMPLETED_NO, null ) ;
  170. }
  171. public static final int BAD_OPERATION_AFTER_SHUTDOWN = OMGVMCID.value + 4 ;
  172. public BAD_INV_ORDER badOperationAfterShutdown( CompletionStatus cs, Throwable t ) {
  173. BAD_INV_ORDER exc = new BAD_INV_ORDER( BAD_OPERATION_AFTER_SHUTDOWN, cs ) ;
  174. if (t != null)
  175. exc.initCause( t ) ;
  176. if (logger.isLoggable( Level.WARNING )) {
  177. Object[] parameters = null ;
  178. doLog( Level.WARNING, "OMG.badOperationAfterShutdown",
  179. parameters, OMGSystemException.class, exc ) ;
  180. }
  181. return exc ;
  182. }
  183. public BAD_INV_ORDER badOperationAfterShutdown( CompletionStatus cs ) {
  184. return badOperationAfterShutdown( cs, null ) ;
  185. }
  186. public BAD_INV_ORDER badOperationAfterShutdown( Throwable t ) {
  187. return badOperationAfterShutdown( CompletionStatus.COMPLETED_NO, t ) ;
  188. }
  189. public BAD_INV_ORDER badOperationAfterShutdown( ) {
  190. return badOperationAfterShutdown( CompletionStatus.COMPLETED_NO, null ) ;
  191. }
  192. public static final int BAD_INVOKE = OMGVMCID.value + 5 ;
  193. public BAD_INV_ORDER badInvoke( CompletionStatus cs, Throwable t ) {
  194. BAD_INV_ORDER exc = new BAD_INV_ORDER( BAD_INVOKE, cs ) ;
  195. if (t != null)
  196. exc.initCause( t ) ;
  197. if (logger.isLoggable( Level.WARNING )) {
  198. Object[] parameters = null ;
  199. doLog( Level.WARNING, "OMG.badInvoke",
  200. parameters, OMGSystemException.class, exc ) ;
  201. }
  202. return exc ;
  203. }
  204. public BAD_INV_ORDER badInvoke( CompletionStatus cs ) {
  205. return badInvoke( cs, null ) ;
  206. }
  207. public BAD_INV_ORDER badInvoke( Throwable t ) {
  208. return badInvoke( CompletionStatus.COMPLETED_NO, t ) ;
  209. }
  210. public BAD_INV_ORDER badInvoke( ) {
  211. return badInvoke( CompletionStatus.COMPLETED_NO, null ) ;
  212. }
  213. public static final int BAD_SET_SERVANT_MANAGER = OMGVMCID.value + 6 ;
  214. public BAD_INV_ORDER badSetServantManager( CompletionStatus cs, Throwable t ) {
  215. BAD_INV_ORDER exc = new BAD_INV_ORDER( BAD_SET_SERVANT_MANAGER, cs ) ;
  216. if (t != null)
  217. exc.initCause( t ) ;
  218. if (logger.isLoggable( Level.WARNING )) {
  219. Object[] parameters = null ;
  220. doLog( Level.WARNING, "OMG.badSetServantManager",
  221. parameters, OMGSystemException.class, exc ) ;
  222. }
  223. return exc ;
  224. }
  225. public BAD_INV_ORDER badSetServantManager( CompletionStatus cs ) {
  226. return badSetServantManager( cs, null ) ;
  227. }
  228. public BAD_INV_ORDER badSetServantManager( Throwable t ) {
  229. return badSetServantManager( CompletionStatus.COMPLETED_NO, t ) ;
  230. }
  231. public BAD_INV_ORDER badSetServantManager( ) {
  232. return badSetServantManager( CompletionStatus.COMPLETED_NO, null ) ;
  233. }
  234. public static final int BAD_ARGUMENTS_CALL = OMGVMCID.value + 7 ;
  235. public BAD_INV_ORDER badArgumentsCall( CompletionStatus cs, Throwable t ) {
  236. BAD_INV_ORDER exc = new BAD_INV_ORDER( BAD_ARGUMENTS_CALL, cs ) ;
  237. if (t != null)
  238. exc.initCause( t ) ;
  239. if (logger.isLoggable( Level.WARNING )) {
  240. Object[] parameters = null ;
  241. doLog( Level.WARNING, "OMG.badArgumentsCall",
  242. parameters, OMGSystemException.class, exc ) ;
  243. }
  244. return exc ;
  245. }
  246. public BAD_INV_ORDER badArgumentsCall( CompletionStatus cs ) {
  247. return badArgumentsCall( cs, null ) ;
  248. }
  249. public BAD_INV_ORDER badArgumentsCall( Throwable t ) {
  250. return badArgumentsCall( CompletionStatus.COMPLETED_NO, t ) ;
  251. }
  252. public BAD_INV_ORDER badArgumentsCall( ) {
  253. return badArgumentsCall( CompletionStatus.COMPLETED_NO, null ) ;
  254. }
  255. public static final int BAD_CTX_CALL = OMGVMCID.value + 8 ;
  256. public BAD_INV_ORDER badCtxCall( CompletionStatus cs, Throwable t ) {
  257. BAD_INV_ORDER exc = new BAD_INV_ORDER( BAD_CTX_CALL, cs ) ;
  258. if (t != null)
  259. exc.initCause( t ) ;
  260. if (logger.isLoggable( Level.WARNING )) {
  261. Object[] parameters = null ;
  262. doLog( Level.WARNING, "OMG.badCtxCall",
  263. parameters, OMGSystemException.class, exc ) ;
  264. }
  265. return exc ;
  266. }
  267. public BAD_INV_ORDER badCtxCall( CompletionStatus cs ) {
  268. return badCtxCall( cs, null ) ;
  269. }
  270. public BAD_INV_ORDER badCtxCall( Throwable t ) {
  271. return badCtxCall( CompletionStatus.COMPLETED_NO, t ) ;
  272. }
  273. public BAD_INV_ORDER badCtxCall( ) {
  274. return badCtxCall( CompletionStatus.COMPLETED_NO, null ) ;
  275. }
  276. public static final int BAD_RESULT_CALL = OMGVMCID.value + 9 ;
  277. public BAD_INV_ORDER badResultCall( CompletionStatus cs, Throwable t ) {
  278. BAD_INV_ORDER exc = new BAD_INV_ORDER( BAD_RESULT_CALL, cs ) ;
  279. if (t != null)
  280. exc.initCause( t ) ;
  281. if (logger.isLoggable( Level.WARNING )) {
  282. Object[] parameters = null ;
  283. doLog( Level.WARNING, "OMG.badResultCall",
  284. parameters, OMGSystemException.class, exc ) ;
  285. }
  286. return exc ;
  287. }
  288. public BAD_INV_ORDER badResultCall( CompletionStatus cs ) {
  289. return badResultCall( cs, null ) ;
  290. }
  291. public BAD_INV_ORDER badResultCall( Throwable t ) {
  292. return badResultCall( CompletionStatus.COMPLETED_NO, t ) ;
  293. }
  294. public BAD_INV_ORDER badResultCall( ) {
  295. return badResultCall( CompletionStatus.COMPLETED_NO, null ) ;
  296. }
  297. public static final int BAD_SEND = OMGVMCID.value + 10 ;
  298. public BAD_INV_ORDER badSend( CompletionStatus cs, Throwable t ) {
  299. BAD_INV_ORDER exc = new BAD_INV_ORDER( BAD_SEND, cs ) ;
  300. if (t != null)
  301. exc.initCause( t ) ;
  302. if (logger.isLoggable( Level.WARNING )) {
  303. Object[] parameters = null ;
  304. doLog( Level.WARNING, "OMG.badSend",
  305. parameters, OMGSystemException.class, exc ) ;
  306. }
  307. return exc ;
  308. }
  309. public BAD_INV_ORDER badSend( CompletionStatus cs ) {
  310. return badSend( cs, null ) ;
  311. }
  312. public BAD_INV_ORDER badSend( Throwable t ) {
  313. return badSend( CompletionStatus.COMPLETED_NO, t ) ;
  314. }
  315. public BAD_INV_ORDER badSend( ) {
  316. return badSend( CompletionStatus.COMPLETED_NO, null ) ;
  317. }
  318. public static final int BAD_POLL_BEFORE = OMGVMCID.value + 11 ;
  319. public BAD_INV_ORDER badPollBefore( CompletionStatus cs, Throwable t ) {
  320. BAD_INV_ORDER exc = new BAD_INV_ORDER( BAD_POLL_BEFORE, cs ) ;
  321. if (t != null)
  322. exc.initCause( t ) ;
  323. if (logger.isLoggable( Level.WARNING )) {
  324. Object[] parameters = null ;
  325. doLog( Level.WARNING, "OMG.badPollBefore",
  326. parameters, OMGSystemException.class, exc ) ;
  327. }
  328. return exc ;
  329. }
  330. public BAD_INV_ORDER badPollBefore( CompletionStatus cs ) {
  331. return badPollBefore( cs, null ) ;
  332. }
  333. public BAD_INV_ORDER badPollBefore( Throwable t ) {
  334. return badPollBefore( CompletionStatus.COMPLETED_NO, t ) ;
  335. }
  336. public BAD_INV_ORDER badPollBefore( ) {
  337. return badPollBefore( CompletionStatus.COMPLETED_NO, null ) ;
  338. }
  339. public static final int BAD_POLL_AFTER = OMGVMCID.value + 12 ;
  340. public BAD_INV_ORDER badPollAfter( CompletionStatus cs, Throwable t ) {
  341. BAD_INV_ORDER exc = new BAD_INV_ORDER( BAD_POLL_AFTER, cs ) ;
  342. if (t != null)
  343. exc.initCause( t ) ;
  344. if (logger.isLoggable( Level.WARNING )) {
  345. Object[] parameters = null ;
  346. doLog( Level.WARNING, "OMG.badPollAfter",
  347. parameters, OMGSystemException.class, exc ) ;
  348. }
  349. return exc ;
  350. }
  351. public BAD_INV_ORDER badPollAfter( CompletionStatus cs ) {
  352. return badPollAfter( cs, null ) ;
  353. }
  354. public BAD_INV_ORDER badPollAfter( Throwable t ) {
  355. return badPollAfter( CompletionStatus.COMPLETED_NO, t ) ;
  356. }
  357. public BAD_INV_ORDER badPollAfter( ) {
  358. return badPollAfter( CompletionStatus.COMPLETED_NO, null ) ;
  359. }
  360. public static final int BAD_POLL_SYNC = OMGVMCID.value + 13 ;
  361. public BAD_INV_ORDER badPollSync( CompletionStatus cs, Throwable t ) {
  362. BAD_INV_ORDER exc = new BAD_INV_ORDER( BAD_POLL_SYNC, cs ) ;
  363. if (t != null)
  364. exc.initCause( t ) ;
  365. if (logger.isLoggable( Level.WARNING )) {
  366. Object[] parameters = null ;
  367. doLog( Level.WARNING, "OMG.badPollSync",
  368. parameters, OMGSystemException.class, exc ) ;
  369. }
  370. return exc ;
  371. }
  372. public BAD_INV_ORDER badPollSync( CompletionStatus cs ) {
  373. return badPollSync( cs, null ) ;
  374. }
  375. public BAD_INV_ORDER badPollSync( Throwable t ) {
  376. return badPollSync( CompletionStatus.COMPLETED_NO, t ) ;
  377. }
  378. public BAD_INV_ORDER badPollSync( ) {
  379. return badPollSync( CompletionStatus.COMPLETED_NO, null ) ;
  380. }
  381. public static final int INVALID_PI_CALL1 = OMGVMCID.value + 14 ;
  382. public BAD_INV_ORDER invalidPiCall1( CompletionStatus cs, Throwable t ) {
  383. BAD_INV_ORDER exc = new BAD_INV_ORDER( INVALID_PI_CALL1, cs ) ;
  384. if (t != null)
  385. exc.initCause( t ) ;
  386. if (logger.isLoggable( Level.FINE )) {
  387. Object[] parameters = null ;
  388. doLog( Level.FINE, "OMG.invalidPiCall1",
  389. parameters, OMGSystemException.class, exc ) ;
  390. }
  391. return exc ;
  392. }
  393. public BAD_INV_ORDER invalidPiCall1( CompletionStatus cs ) {
  394. return invalidPiCall1( cs, null ) ;
  395. }
  396. public BAD_INV_ORDER invalidPiCall1( Throwable t ) {
  397. return invalidPiCall1( CompletionStatus.COMPLETED_NO, t ) ;
  398. }
  399. public BAD_INV_ORDER invalidPiCall1( ) {
  400. return invalidPiCall1( CompletionStatus.COMPLETED_NO, null ) ;
  401. }
  402. public static final int INVALID_PI_CALL2 = OMGVMCID.value + 14 ;
  403. public BAD_INV_ORDER invalidPiCall2( CompletionStatus cs, Throwable t ) {
  404. BAD_INV_ORDER exc = new BAD_INV_ORDER( INVALID_PI_CALL2, cs ) ;
  405. if (t != null)
  406. exc.initCause( t ) ;
  407. if (logger.isLoggable( Level.FINE )) {
  408. Object[] parameters = null ;
  409. doLog( Level.FINE, "OMG.invalidPiCall2",
  410. parameters, OMGSystemException.class, exc ) ;
  411. }
  412. return exc ;
  413. }
  414. public BAD_INV_ORDER invalidPiCall2( CompletionStatus cs ) {
  415. return invalidPiCall2( cs, null ) ;
  416. }
  417. public BAD_INV_ORDER invalidPiCall2( Throwable t ) {
  418. return invalidPiCall2( CompletionStatus.COMPLETED_NO, t ) ;
  419. }
  420. public BAD_INV_ORDER invalidPiCall2( ) {
  421. return invalidPiCall2( CompletionStatus.COMPLETED_NO, null ) ;
  422. }
  423. public static final int INVALID_PI_CALL3 = OMGVMCID.value + 14 ;
  424. public BAD_INV_ORDER invalidPiCall3( CompletionStatus cs, Throwable t ) {
  425. BAD_INV_ORDER exc = new BAD_INV_ORDER( INVALID_PI_CALL3, cs ) ;
  426. if (t != null)
  427. exc.initCause( t ) ;
  428. if (logger.isLoggable( Level.FINE )) {
  429. Object[] parameters = null ;
  430. doLog( Level.FINE, "OMG.invalidPiCall3",
  431. parameters, OMGSystemException.class, exc ) ;
  432. }
  433. return exc ;
  434. }
  435. public BAD_INV_ORDER invalidPiCall3( CompletionStatus cs ) {
  436. return invalidPiCall3( cs, null ) ;
  437. }
  438. public BAD_INV_ORDER invalidPiCall3( Throwable t ) {
  439. return invalidPiCall3( CompletionStatus.COMPLETED_NO, t ) ;
  440. }
  441. public BAD_INV_ORDER invalidPiCall3( ) {
  442. return invalidPiCall3( CompletionStatus.COMPLETED_NO, null ) ;
  443. }
  444. public static final int INVALID_PI_CALL4 = OMGVMCID.value + 14 ;
  445. public BAD_INV_ORDER invalidPiCall4( CompletionStatus cs, Throwable t ) {
  446. BAD_INV_ORDER exc = new BAD_INV_ORDER( INVALID_PI_CALL4, cs ) ;
  447. if (t != null)
  448. exc.initCause( t ) ;
  449. if (logger.isLoggable( Level.FINE )) {
  450. Object[] parameters = null ;
  451. doLog( Level.FINE, "OMG.invalidPiCall4",
  452. parameters, OMGSystemException.class, exc ) ;
  453. }
  454. return exc ;
  455. }
  456. public BAD_INV_ORDER invalidPiCall4( CompletionStatus cs ) {
  457. return invalidPiCall4( cs, null ) ;
  458. }
  459. public BAD_INV_ORDER invalidPiCall4( Throwable t ) {
  460. return invalidPiCall4( CompletionStatus.COMPLETED_NO, t ) ;
  461. }
  462. public BAD_INV_ORDER invalidPiCall4( ) {
  463. return invalidPiCall4( CompletionStatus.COMPLETED_NO, null ) ;
  464. }
  465. public static final int SERVICE_CONTEXT_ADD_FAILED = OMGVMCID.value + 15 ;
  466. public BAD_INV_ORDER serviceContextAddFailed( CompletionStatus cs, Throwable t, Object arg0) {
  467. BAD_INV_ORDER exc = new BAD_INV_ORDER( SERVICE_CONTEXT_ADD_FAILED, cs ) ;
  468. if (t != null)
  469. exc.initCause( t ) ;
  470. if (logger.isLoggable( Level.FINE )) {
  471. Object[] parameters = new Object[1] ;
  472. parameters[0] = arg0 ;
  473. doLog( Level.FINE, "OMG.serviceContextAddFailed",
  474. parameters, OMGSystemException.class, exc ) ;
  475. }
  476. return exc ;
  477. }
  478. public BAD_INV_ORDER serviceContextAddFailed( CompletionStatus cs, Object arg0) {
  479. return serviceContextAddFailed( cs, null, arg0 ) ;
  480. }
  481. public BAD_INV_ORDER serviceContextAddFailed( Throwable t, Object arg0) {
  482. return serviceContextAddFailed( CompletionStatus.COMPLETED_NO, t, arg0 ) ;
  483. }
  484. public BAD_INV_ORDER serviceContextAddFailed( Object arg0) {
  485. return serviceContextAddFailed( CompletionStatus.COMPLETED_NO, null, arg0 ) ;
  486. }
  487. public static final int POLICY_FACTORY_REG_FAILED = OMGVMCID.value + 16 ;
  488. public BAD_INV_ORDER policyFactoryRegFailed( CompletionStatus cs, Throwable t, Object arg0) {
  489. BAD_INV_ORDER exc = new BAD_INV_ORDER( POLICY_FACTORY_REG_FAILED, cs ) ;
  490. if (t != null)
  491. exc.initCause( t ) ;
  492. if (logger.isLoggable( Level.WARNING )) {
  493. Object[] parameters = new Object[1] ;
  494. parameters[0] = arg0 ;
  495. doLog( Level.WARNING, "OMG.policyFactoryRegFailed",
  496. parameters, OMGSystemException.class, exc ) ;
  497. }
  498. return exc ;
  499. }
  500. public BAD_INV_ORDER policyFactoryRegFailed( CompletionStatus cs, Object arg0) {
  501. return policyFactoryRegFailed( cs, null, arg0 ) ;
  502. }
  503. public BAD_INV_ORDER policyFactoryRegFailed( Throwable t, Object arg0) {
  504. return policyFactoryRegFailed( CompletionStatus.COMPLETED_NO, t, arg0 ) ;
  505. }
  506. public BAD_INV_ORDER policyFactoryRegFailed( Object arg0) {
  507. return policyFactoryRegFailed( CompletionStatus.COMPLETED_NO, null, arg0 ) ;
  508. }
  509. public static final int CREATE_POA_DESTROY = OMGVMCID.value + 17 ;
  510. public BAD_INV_ORDER createPoaDestroy( CompletionStatus cs, Throwable t ) {
  511. BAD_INV_ORDER exc = new BAD_INV_ORDER( CREATE_POA_DESTROY, cs ) ;
  512. if (t != null)
  513. exc.initCause( t ) ;
  514. if (logger.isLoggable( Level.WARNING )) {
  515. Object[] parameters = null ;
  516. doLog( Level.WARNING, "OMG.createPoaDestroy",
  517. parameters, OMGSystemException.class, exc ) ;
  518. }
  519. return exc ;
  520. }
  521. public BAD_INV_ORDER createPoaDestroy( CompletionStatus cs ) {
  522. return createPoaDestroy( cs, null ) ;
  523. }
  524. public BAD_INV_ORDER createPoaDestroy( Throwable t ) {
  525. return createPoaDestroy( CompletionStatus.COMPLETED_NO, t ) ;
  526. }
  527. public BAD_INV_ORDER createPoaDestroy( ) {
  528. return createPoaDestroy( CompletionStatus.COMPLETED_NO, null ) ;
  529. }
  530. public static final int PRIORITY_REASSIGN = OMGVMCID.value + 18 ;
  531. public BAD_INV_ORDER priorityReassign( CompletionStatus cs, Throwable t ) {
  532. BAD_INV_ORDER exc = new BAD_INV_ORDER( PRIORITY_REASSIGN, cs ) ;
  533. if (t != null)
  534. exc.initCause( t ) ;
  535. if (logger.isLoggable( Level.WARNING )) {
  536. Object[] parameters = null ;
  537. doLog( Level.WARNING, "OMG.priorityReassign",
  538. parameters, OMGSystemException.class, exc ) ;
  539. }
  540. return exc ;
  541. }
  542. public BAD_INV_ORDER priorityReassign( CompletionStatus cs ) {
  543. return priorityReassign( cs, null ) ;
  544. }
  545. public BAD_INV_ORDER priorityReassign( Throwable t ) {
  546. return priorityReassign( CompletionStatus.COMPLETED_NO, t ) ;
  547. }
  548. public BAD_INV_ORDER priorityReassign( ) {
  549. return priorityReassign( CompletionStatus.COMPLETED_NO, null ) ;
  550. }
  551. public static final int XA_START_OUTSIZE = OMGVMCID.value + 19 ;
  552. public BAD_INV_ORDER xaStartOutsize( CompletionStatus cs, Throwable t ) {
  553. BAD_INV_ORDER exc = new BAD_INV_ORDER( XA_START_OUTSIZE, cs ) ;
  554. if (t != null)
  555. exc.initCause( t ) ;
  556. if (logger.isLoggable( Level.WARNING )) {
  557. Object[] parameters = null ;
  558. doLog( Level.WARNING, "OMG.xaStartOutsize",
  559. parameters, OMGSystemException.class, exc ) ;
  560. }
  561. return exc ;
  562. }
  563. public BAD_INV_ORDER xaStartOutsize( CompletionStatus cs ) {
  564. return xaStartOutsize( cs, null ) ;
  565. }
  566. public BAD_INV_ORDER xaStartOutsize( Throwable t ) {
  567. return xaStartOutsize( CompletionStatus.COMPLETED_NO, t ) ;
  568. }
  569. public BAD_INV_ORDER xaStartOutsize( ) {
  570. return xaStartOutsize( CompletionStatus.COMPLETED_NO, null ) ;
  571. }
  572. public static final int XA_START_PROTO = OMGVMCID.value + 20 ;
  573. public BAD_INV_ORDER xaStartProto( CompletionStatus cs, Throwable t ) {
  574. BAD_INV_ORDER exc = new BAD_INV_ORDER( XA_START_PROTO, cs ) ;
  575. if (t != null)
  576. exc.initCause( t ) ;
  577. if (logger.isLoggable( Level.WARNING )) {
  578. Object[] parameters = null ;
  579. doLog( Level.WARNING, "OMG.xaStartProto",
  580. parameters, OMGSystemException.class, exc ) ;
  581. }
  582. return exc ;
  583. }
  584. public BAD_INV_ORDER xaStartProto( CompletionStatus cs ) {
  585. return xaStartProto( cs, null ) ;
  586. }
  587. public BAD_INV_ORDER xaStartProto( Throwable t ) {
  588. return xaStartProto( CompletionStatus.COMPLETED_NO, t ) ;
  589. }
  590. public BAD_INV_ORDER xaStartProto( ) {
  591. return xaStartProto( CompletionStatus.COMPLETED_NO, null ) ;
  592. }
  593. ///////////////////////////////////////////////////////////
  594. // BAD_OPERATION
  595. ///////////////////////////////////////////////////////////
  596. public static final int BAD_SERVANT_MANAGER_TYPE = OMGVMCID.value + 1 ;
  597. public BAD_OPERATION badServantManagerType( CompletionStatus cs, Throwable t ) {
  598. BAD_OPERATION exc = new BAD_OPERATION( BAD_SERVANT_MANAGER_TYPE, cs ) ;
  599. if (t != null)
  600. exc.initCause( t ) ;
  601. if (logger.isLoggable( Level.WARNING )) {
  602. Object[] parameters = null ;
  603. doLog( Level.WARNING, "OMG.badServantManagerType",
  604. parameters, OMGSystemException.class, exc ) ;
  605. }
  606. return exc ;
  607. }
  608. public BAD_OPERATION badServantManagerType( CompletionStatus cs ) {
  609. return badServantManagerType( cs, null ) ;
  610. }
  611. public BAD_OPERATION badServantManagerType( Throwable t ) {
  612. return badServantManagerType( CompletionStatus.COMPLETED_NO, t ) ;
  613. }
  614. public BAD_OPERATION badServantManagerType( ) {
  615. return badServantManagerType( CompletionStatus.COMPLETED_NO, null ) ;
  616. }
  617. public static final int OPERATION_UNKNOWN_TO_TARGET = OMGVMCID.value + 2 ;
  618. public BAD_OPERATION operationUnknownToTarget( CompletionStatus cs, Throwable t ) {
  619. BAD_OPERATION exc = new BAD_OPERATION( OPERATION_UNKNOWN_TO_TARGET, cs ) ;
  620. if (t != null)
  621. exc.initCause( t ) ;
  622. if (logger.isLoggable( Level.WARNING )) {
  623. Object[] parameters = null ;
  624. doLog( Level.WARNING, "OMG.operationUnknownToTarget",
  625. parameters, OMGSystemException.class, exc ) ;
  626. }
  627. return exc ;
  628. }
  629. public BAD_OPERATION operationUnknownToTarget( CompletionStatus cs ) {
  630. return operationUnknownToTarget( cs, null ) ;
  631. }
  632. public BAD_OPERATION operationUnknownToTarget( Throwable t ) {
  633. return operationUnknownToTarget( CompletionStatus.COMPLETED_NO, t ) ;
  634. }
  635. public BAD_OPERATION operationUnknownToTarget( ) {
  636. return operationUnknownToTarget( CompletionStatus.COMPLETED_NO, null ) ;
  637. }
  638. ///////////////////////////////////////////////////////////
  639. // BAD_PARAM
  640. ///////////////////////////////////////////////////////////
  641. public static final int UNABLE_REGISTER_VALUE_FACTORY = OMGVMCID.value + 1 ;
  642. public BAD_PARAM unableRegisterValueFactory( CompletionStatus cs, Throwable t ) {
  643. BAD_PARAM exc = new BAD_PARAM( UNABLE_REGISTER_VALUE_FACTORY, cs ) ;
  644. if (t != null)
  645. exc.initCause( t ) ;
  646. if (logger.isLoggable( Level.WARNING )) {
  647. Object[] parameters = null ;
  648. doLog( Level.WARNING, "OMG.unableRegisterValueFactory",
  649. parameters, OMGSystemException.class, exc ) ;
  650. }
  651. return exc ;
  652. }
  653. public BAD_PARAM unableRegisterValueFactory( CompletionStatus cs ) {
  654. return unableRegisterValueFactory( cs, null ) ;
  655. }
  656. public BAD_PARAM unableRegisterValueFactory( Throwable t ) {
  657. return unableRegisterValueFactory( CompletionStatus.COMPLETED_NO, t ) ;
  658. }
  659. public BAD_PARAM unableRegisterValueFactory( ) {
  660. return unableRegisterValueFactory( CompletionStatus.COMPLETED_NO, null ) ;
  661. }
  662. public static final int RID_ALREADY_DEFINED = OMGVMCID.value + 2 ;
  663. public BAD_PARAM ridAlreadyDefined( CompletionStatus cs, Throwable t ) {
  664. BAD_PARAM exc = new BAD_PARAM( RID_ALREADY_DEFINED, cs ) ;
  665. if (t != null)
  666. exc.initCause( t ) ;
  667. if (logger.isLoggable( Level.WARNING )) {
  668. Object[] parameters = null ;
  669. doLog( Level.WARNING, "OMG.ridAlreadyDefined",
  670. parameters, OMGSystemException.class, exc ) ;
  671. }
  672. return exc ;
  673. }
  674. public BAD_PARAM ridAlreadyDefined( CompletionStatus cs ) {
  675. return ridAlreadyDefined( cs, null ) ;
  676. }
  677. public BAD_PARAM ridAlreadyDefined( Throwable t ) {
  678. return ridAlreadyDefined( CompletionStatus.COMPLETED_NO, t ) ;
  679. }
  680. public BAD_PARAM ridAlreadyDefined( ) {
  681. return ridAlreadyDefined( CompletionStatus.COMPLETED_NO, null ) ;
  682. }
  683. public static final int NAME_USED_IFR = OMGVMCID.value + 3 ;
  684. public BAD_PARAM nameUsedIfr( CompletionStatus cs, Throwable t ) {
  685. BAD_PARAM exc = new BAD_PARAM( NAME_USED_IFR, cs ) ;
  686. if (t != null)
  687. exc.initCause( t ) ;
  688. if (logger.isLoggable( Level.WARNING )) {
  689. Object[] parameters = null ;
  690. doLog( Level.WARNING, "OMG.nameUsedIfr",
  691. parameters, OMGSystemException.class, exc ) ;
  692. }
  693. return exc ;
  694. }
  695. public BAD_PARAM nameUsedIfr( CompletionStatus cs ) {
  696. return nameUsedIfr( cs, null ) ;
  697. }
  698. public BAD_PARAM nameUsedIfr( Throwable t ) {
  699. return nameUsedIfr( CompletionStatus.COMPLETED_NO, t ) ;
  700. }
  701. public BAD_PARAM nameUsedIfr( ) {
  702. return nameUsedIfr( CompletionStatus.COMPLETED_NO, null ) ;
  703. }
  704. public static final int TARGET_NOT_CONTAINER = OMGVMCID.value + 4 ;
  705. public BAD_PARAM targetNotContainer( CompletionStatus cs, Throwable t ) {
  706. BAD_PARAM exc = new BAD_PARAM( TARGET_NOT_CONTAINER, cs ) ;
  707. if (t != null)
  708. exc.initCause( t ) ;
  709. if (logger.isLoggable( Level.WARNING )) {
  710. Object[] parameters = null ;
  711. doLog( Level.WARNING, "OMG.targetNotContainer",
  712. parameters, OMGSystemException.class, exc ) ;
  713. }
  714. return exc ;
  715. }
  716. public BAD_PARAM targetNotContainer( CompletionStatus cs ) {
  717. return targetNotContainer( cs, null ) ;
  718. }
  719. public BAD_PARAM targetNotContainer( Throwable t ) {
  720. return targetNotContainer( CompletionStatus.COMPLETED_NO, t ) ;
  721. }
  722. public BAD_PARAM targetNotContainer( ) {
  723. return targetNotContainer( CompletionStatus.COMPLETED_NO, null ) ;
  724. }
  725. public static final int NAME_CLASH = OMGVMCID.value + 5 ;
  726. public BAD_PARAM nameClash( CompletionStatus cs, Throwable t ) {
  727. BAD_PARAM exc = new BAD_PARAM( NAME_CLASH, cs ) ;
  728. if (t != null)
  729. exc.initCause( t ) ;
  730. if (logger.isLoggable( Level.WARNING )) {
  731. Object[] parameters = null ;
  732. doLog( Level.WARNING, "OMG.nameClash",
  733. parameters, OMGSystemException.class, exc ) ;
  734. }
  735. return exc ;
  736. }
  737. public BAD_PARAM nameClash( CompletionStatus cs ) {
  738. return nameClash( cs, null ) ;
  739. }
  740. public BAD_PARAM nameClash( Throwable t ) {
  741. return nameClash( CompletionStatus.COMPLETED_NO, t ) ;
  742. }
  743. public BAD_PARAM nameClash( ) {
  744. return nameClash( CompletionStatus.COMPLETED_NO, null ) ;
  745. }
  746. public static final int NOT_SERIALIZABLE = OMGVMCID.value + 6 ;
  747. public BAD_PARAM notSerializable( CompletionStatus cs, Throwable t, Object arg0) {
  748. BAD_PARAM exc = new BAD_PARAM( NOT_SERIALIZABLE, cs ) ;
  749. if (t != null)
  750. exc.initCause( t ) ;
  751. if (logger.isLoggable( Level.WARNING )) {
  752. Object[] parameters = new Object[1] ;
  753. parameters[0] = arg0 ;
  754. doLog( Level.WARNING, "OMG.notSerializable",
  755. parameters, OMGSystemException.class, exc ) ;
  756. }
  757. return exc ;
  758. }
  759. public BAD_PARAM notSerializable( CompletionStatus cs, Object arg0) {
  760. return notSerializable( cs, null, arg0 ) ;
  761. }
  762. public BAD_PARAM notSerializable( Throwable t, Object arg0) {
  763. return notSerializable( CompletionStatus.COMPLETED_NO, t, arg0 ) ;
  764. }
  765. public BAD_PARAM notSerializable( Object arg0) {
  766. return notSerializable( CompletionStatus.COMPLETED_NO, null, arg0 ) ;
  767. }
  768. public static final int SO_BAD_SCHEME_NAME = OMGVMCID.value + 7 ;
  769. public BAD_PARAM soBadSchemeName( CompletionStatus cs, Throwable t ) {
  770. BAD_PARAM exc = new BAD_PARAM( SO_BAD_SCHEME_NAME, cs ) ;
  771. if (t != null)
  772. exc.initCause( t ) ;
  773. if (logger.isLoggable( Level.WARNING )) {
  774. Object[] parameters = null ;
  775. doLog( Level.WARNING, "OMG.soBadSchemeName",
  776. parameters, OMGSystemException.class, exc ) ;
  777. }
  778. return exc ;
  779. }
  780. public BAD_PARAM soBadSchemeName( CompletionStatus cs ) {
  781. return soBadSchemeName( cs, null ) ;
  782. }
  783. public BAD_PARAM soBadSchemeName( Throwable t ) {
  784. return soBadSchemeName( CompletionStatus.COMPLETED_NO, t ) ;
  785. }
  786. public BAD_PARAM soBadSchemeName( ) {
  787. return soBadSchemeName( CompletionStatus.COMPLETED_NO, null ) ;
  788. }
  789. public static final int SO_BAD_ADDRESS = OMGVMCID.value + 8 ;
  790. public BAD_PARAM soBadAddress( CompletionStatus cs, Throwable t ) {
  791. BAD_PARAM exc = new BAD_PARAM( SO_BAD_ADDRESS, cs ) ;
  792. if (t != null)
  793. exc.initCause( t ) ;
  794. if (logger.isLoggable( Level.WARNING )) {
  795. Object[] parameters = null ;
  796. doLog( Level.WARNING, "OMG.soBadAddress",
  797. parameters, OMGSystemException.class, exc ) ;
  798. }
  799. return exc ;
  800. }
  801. public BAD_PARAM soBadAddress( CompletionStatus cs ) {
  802. return soBadAddress( cs, null ) ;
  803. }
  804. public BAD_PARAM soBadAddress( Throwable t ) {
  805. return soBadAddress( CompletionStatus.COMPLETED_NO, t ) ;
  806. }
  807. public BAD_PARAM soBadAddress( ) {
  808. return soBadAddress( CompletionStatus.COMPLETED_NO, null ) ;
  809. }
  810. public static final int SO_BAD_SCHEMA_SPECIFIC = OMGVMCID.value + 9 ;
  811. public BAD_PARAM soBadSchemaSpecific( CompletionStatus cs, Throwable t ) {
  812. BAD_PARAM exc = new BAD_PARAM( SO_BAD_SCHEMA_SPECIFIC, cs ) ;
  813. if (t != null)
  814. exc.initCause( t ) ;
  815. if (logger.isLoggable( Level.WARNING )) {
  816. Object[] parameters = null ;
  817. doLog( Level.WARNING, "OMG.soBadSchemaSpecific",
  818. parameters, OMGSystemException.class, exc ) ;
  819. }
  820. return exc ;
  821. }
  822. public BAD_PARAM soBadSchemaSpecific( CompletionStatus cs ) {
  823. return soBadSchemaSpecific( cs, null ) ;
  824. }
  825. public BAD_PARAM soBadSchemaSpecific( Throwable t ) {
  826. return soBadSchemaSpecific( CompletionStatus.COMPLETED_NO, t ) ;
  827. }
  828. public BAD_PARAM soBadSchemaSpecific( ) {
  829. return soBadSchemaSpecific( CompletionStatus.COMPLETED_NO, null ) ;
  830. }
  831. public static final int SO_NON_SPECIFIC = OMGVMCID.value + 10 ;
  832. public BAD_PARAM soNonSpecific( CompletionStatus cs, Throwable t ) {
  833. BAD_PARAM exc = new BAD_PARAM( SO_NON_SPECIFIC, cs ) ;
  834. if (t != null)
  835. exc.initCause( t ) ;
  836. if (logger.isLoggable( Level.WARNING )) {
  837. Object[] parameters = null ;
  838. doLog( Level.WARNING, "OMG.soNonSpecific",
  839. parameters, OMGSystemException.class, exc ) ;
  840. }
  841. return exc ;
  842. }
  843. public BAD_PARAM soNonSpecific( CompletionStatus cs ) {
  844. return soNonSpecific( cs, null ) ;
  845. }
  846. public BAD_PARAM soNonSpecific( Throwable t ) {
  847. return soNonSpecific( CompletionStatus.COMPLETED_NO, t ) ;
  848. }
  849. public BAD_PARAM soNonSpecific( ) {
  850. return soNonSpecific( CompletionStatus.COMPLETED_NO, null ) ;
  851. }
  852. public static final int IR_DERIVE_ABS_INT_BASE = OMGVMCID.value + 11 ;
  853. public BAD_PARAM irDeriveAbsIntBase( CompletionStatus cs, Throwable t ) {
  854. BAD_PARAM exc = new BAD_PARAM( IR_DERIVE_ABS_INT_BASE, cs ) ;
  855. if (t != null)
  856. exc.initCause( t ) ;
  857. if (logger.isLoggable( Level.WARNING )) {
  858. Object[] parameters = null ;
  859. doLog( Level.WARNING, "OMG.irDeriveAbsIntBase",
  860. parameters, OMGSystemException.class, exc ) ;
  861. }
  862. return exc ;
  863. }
  864. public BAD_PARAM irDeriveAbsIntBase( CompletionStatus cs ) {
  865. return irDeriveAbsIntBase( cs, null ) ;
  866. }
  867. public BAD_PARAM irDeriveAbsIntBase( Throwable t ) {
  868. return irDeriveAbsIntBase( CompletionStatus.COMPLETED_NO, t ) ;
  869. }
  870. public BAD_PARAM irDeriveAbsIntBase( ) {
  871. return irDeriveAbsIntBase( CompletionStatus.COMPLETED_NO, null ) ;
  872. }
  873. public static final int IR_VALUE_SUPPORT = OMGVMCID.value + 12 ;
  874. public BAD_PARAM irValueSupport( CompletionStatus cs, Throwable t ) {
  875. BAD_PARAM exc = new BAD_PARAM( IR_VALUE_SUPPORT, cs ) ;
  876. if (t != null)
  877. exc.initCause( t ) ;
  878. if (logger.isLoggable( Level.WARNING )) {
  879. Object[] parameters = null ;
  880. doLog( Level.WARNING, "OMG.irValueSupport",
  881. parameters, OMGSystemException.class, exc ) ;
  882. }
  883. return exc ;
  884. }
  885. public BAD_PARAM irValueSupport( CompletionStatus cs ) {
  886. return irValueSupport( cs, null ) ;
  887. }
  888. public BAD_PARAM irValueSupport( Throwable t ) {
  889. return irValueSupport( CompletionStatus.COMPLETED_NO, t ) ;
  890. }
  891. public BAD_PARAM irValueSupport( ) {
  892. return irValueSupport( CompletionStatus.COMPLETED_NO, null ) ;
  893. }
  894. public static final int INCOMPLETE_TYPECODE = OMGVMCID.value + 13 ;
  895. public BAD_PARAM incompleteTypecode( CompletionStatus cs, Throwable t ) {
  896. BAD_PARAM exc = new BAD_PARAM( INCOMPLETE_TYPECODE, cs ) ;
  897. if (t != null)
  898. exc.initCause( t ) ;
  899. if (logger.isLoggable( Level.WARNING )) {
  900. Object[] parameters = null ;
  901. doLog( Level.WARNING, "OMG.incompleteTypecode",
  902. parameters, OMGSystemException.class, exc ) ;
  903. }
  904. return exc ;
  905. }
  906. public BAD_PARAM incompleteTypecode( CompletionStatus cs ) {
  907. return incompleteTypecode( cs, null ) ;
  908. }
  909. public BAD_PARAM incompleteTypecode( Throwable t ) {
  910. return incompleteTypecode( CompletionStatus.COMPLETED_NO, t ) ;
  911. }
  912. public BAD_PARAM incompleteTypecode( ) {
  913. return incompleteTypecode( CompletionStatus.COMPLETED_NO, null ) ;
  914. }
  915. public static final int INVALID_OBJECT_ID = OMGVMCID.value + 14 ;
  916. public BAD_PARAM invalidObjectId( CompletionStatus cs, Throwable t ) {
  917. BAD_PARAM exc = new BAD_PARAM( INVALID_OBJECT_ID, cs ) ;
  918. if (t != null)
  919. exc.initCause( t ) ;
  920. if (logger.isLoggable( Level.WARNING )) {
  921. Object[] parameters = null ;
  922. doLog( Level.WARNING, "OMG.invalidObjectId",
  923. parameters, OMGSystemException.class, exc ) ;
  924. }
  925. return exc ;
  926. }
  927. public BAD_PARAM invalidObjectId( CompletionStatus cs ) {
  928. return invalidObjectId( cs, null ) ;
  929. }
  930. public BAD_PARAM invalidObjectId( Throwable t ) {
  931. return invalidObjectId( CompletionStatus.COMPLETED_NO, t ) ;
  932. }
  933. public BAD_PARAM invalidObjectId( ) {
  934. return invalidObjectId( CompletionStatus.COMPLETED_NO, null ) ;
  935. }
  936. public static final int TYPECODE_BAD_NAME = OMGVMCID.value + 15 ;
  937. public BAD_PARAM typecodeBadName( CompletionStatus cs, Throwable t ) {
  938. BAD_PARAM exc = new BAD_PARAM( TYPECODE_BAD_NAME, cs ) ;
  939. if (t != null)
  940. exc.initCause( t ) ;
  941. if (logger.isLoggable( Level.WARNING )) {
  942. Object[] parameters = null ;
  943. doLog( Level.WARNING, "OMG.typecodeBadName",
  944. parameters, OMGSystemException.class, exc ) ;
  945. }
  946. return exc ;
  947. }
  948. public BAD_PARAM typecodeBadName( CompletionStatus cs ) {
  949. return typecodeBadName( cs, null ) ;
  950. }
  951. public BAD_PARAM typecodeBadName( Throwable t ) {
  952. return typecodeBadName( CompletionStatus.COMPLETED_NO, t ) ;
  953. }
  954. public BAD_PARAM typecodeBadName( ) {
  955. return typecodeBadName( CompletionStatus.COMPLETED_NO, null ) ;
  956. }
  957. public static final int TYPECODE_BAD_REPID = OMGVMCID.value + 16 ;
  958. public BAD_PARAM typecodeBadRepid( CompletionStatus cs, Throwable t ) {
  959. BAD_PARAM exc = new BAD_PARAM( TYPECODE_BAD_REPID, cs ) ;
  960. if (t != null)
  961. exc.initCause( t ) ;
  962. if (logger.isLoggable( Level.WARNING )) {
  963. Object[] parameters = null ;
  964. doLog( Level.WARNING, "OMG.typecodeBadRepid",
  965. parameters, OMGSystemException.class, exc ) ;
  966. }
  967. return exc ;
  968. }
  969. public BAD_PARAM typecodeBadRepid( CompletionStatus cs ) {
  970. return typecodeBadRepid( cs, null ) ;
  971. }
  972. public BAD_PARAM typecodeBadRepid( Throwable t ) {
  973. return typecodeBadRepid( CompletionStatus.COMPLETED_NO, t ) ;
  974. }
  975. public BAD_PARAM typecodeBadRepid( ) {
  976. return typecodeBadRepid( CompletionStatus.COMPLETED_NO, null ) ;
  977. }
  978. public static final int TYPECODE_INV_MEMBER = OMGVMCID.value + 17 ;
  979. public BAD_PARAM typecodeInvMember( CompletionStatus cs, Throwable t ) {
  980. BAD_PARAM exc = new BAD_PARAM( TYPECODE_INV_MEMBER, cs ) ;
  981. if (t != null)
  982. exc.initCause( t ) ;
  983. if (logger.isLoggable( Level.WARNING )) {
  984. Object[] parameters = null ;
  985. doLog( Level.WARNING, "OMG.typecodeInvMember",
  986. parameters, OMGSystemException.class, exc ) ;
  987. }
  988. return exc ;
  989. }
  990. public BAD_PARAM typecodeInvMember( CompletionStatus cs ) {
  991. return typecodeInvMember( cs, null ) ;
  992. }
  993. public BAD_PARAM typecodeInvMember( Throwable t ) {
  994. return typecodeInvMember( CompletionStatus.COMPLETED_NO, t ) ;
  995. }
  996. public BAD_PARAM typecodeInvMember( ) {
  997. return typecodeInvMember( CompletionStatus.COMPLETED_NO, null ) ;
  998. }
  999. public static final int TC_UNION_DUP_LABEL = OMGVMCID.value + 18 ;
  1000. public BAD_PARAM tcUnionDupLabel( CompletionStatus cs, Throwable t ) {
  1001. BAD_PARAM exc = new BAD_PARAM( TC_UNION_DUP_LABEL, cs ) ;
  1002. if (t != null)
  1003. exc.initCause( t ) ;
  1004. if (logger.isLoggable( Level.WARNING )) {
  1005. Object[] parameters = null ;
  1006. doLog( Level.WARNING, "OMG.tcUnionDupLabel",
  1007. parameters, OMGSystemException.class, exc ) ;
  1008. }
  1009. return exc ;
  1010. }
  1011. public BAD_PARAM tcUnionDupLabel( CompletionStatus cs ) {
  1012. return tcUnionDupLabel( cs, null ) ;
  1013. }
  1014. public BAD_PARAM tcUnionDupLabel( Throwable t ) {
  1015. return tcUnionDupLabel( CompletionStatus.COMPLETED_NO, t ) ;
  1016. }
  1017. public BAD_PARAM tcUnionDupLabel( ) {
  1018. return tcUnionDupLabel( CompletionStatus.COMPLETED_NO, null ) ;
  1019. }
  1020. public static final int TC_UNION_INCOMPATIBLE = OMGVMCID.value + 19 ;
  1021. public BAD_PARAM tcUnionIncompatible( CompletionStatus cs, Throwable t ) {
  1022. BAD_PARAM exc = new BAD_PARAM( TC_UNION_INCOMPATIBLE, cs ) ;
  1023. if (t != null)
  1024. exc.initCause( t ) ;
  1025. if (logger.isLoggable( Level.WARNING )) {
  1026. Object[] parameters = null ;
  1027. doLog( Level.WARNING, "OMG.tcUnionIncompatible",
  1028. parameters, OMGSystemException.class, exc ) ;
  1029. }
  1030. return exc ;
  1031. }
  1032. public BAD_PARAM tcUnionIncompatible( CompletionStatus cs ) {
  1033. return tcUnionIncompatible( cs, null ) ;
  1034. }
  1035. public BAD_PARAM tcUnionIncompatible( Throwable t ) {
  1036. return tcUnionIncompatible( CompletionStatus.COMPLETED_NO, t ) ;
  1037. }
  1038. public BAD_PARAM tcUnionIncompatible( ) {
  1039. return tcUnionIncompatible( CompletionStatus.COMPLETED_NO, null ) ;
  1040. }
  1041. public static final int TC_UNION_BAD_DISC = OMGVMCID.value + 20 ;
  1042. public BAD_PARAM tcUnionBadDisc( CompletionStatus cs, Throwable t ) {
  1043. BAD_PARAM exc = new BAD_PARAM( TC_UNION_BAD_DISC, cs ) ;
  1044. if (t != null)
  1045. exc.initCause( t ) ;
  1046. if (logger.isLoggable( Level.WARNING )) {
  1047. Object[] parameters = null ;
  1048. doLog( Level.WARNING, "OMG.tcUnionBadDisc",
  1049. parameters, OMGSystemException.class, exc ) ;
  1050. }
  1051. return exc ;
  1052. }
  1053. public BAD_PARAM tcUnionBadDisc( CompletionStatus cs ) {
  1054. return tcUnionBadDisc( cs, null ) ;
  1055. }
  1056. public BAD_PARAM tcUnionBadDisc( Throwable t ) {
  1057. return tcUnionBadDisc( CompletionStatus.COMPLETED_NO, t ) ;
  1058. }
  1059. public BAD_PARAM tcUnionBadDisc( ) {
  1060. return tcUnionBadDisc( CompletionStatus.COMPLETED_NO, null ) ;
  1061. }
  1062. public static final int SET_EXCEPTION_BAD_ANY = OMGVMCID.value + 21 ;
  1063. public BAD_PARAM setExceptionBadAny( CompletionStatus cs, Throwable t ) {
  1064. BAD_PARAM exc = new BAD_PARAM( SET_EXCEPTION_BAD_ANY, cs ) ;
  1065. if (t != null)
  1066. exc.initCause( t ) ;
  1067. if (logger.isLoggable( Level.WARNING )) {
  1068. Object[] parameters = null ;
  1069. doLog( Level.WARNING, "OMG.setExceptionBadAny",
  1070. parameters, OMGSystemException.class, exc ) ;
  1071. }
  1072. return exc ;
  1073. }
  1074. public BAD_PARAM setExceptionBadAny( CompletionStatus cs ) {
  1075. return setExceptionBadAny( cs, null ) ;
  1076. }
  1077. public BAD_PARAM setExceptionBadAny( Throwable t ) {
  1078. return setExceptionBadAny( CompletionStatus.COMPLETED_NO, t ) ;
  1079. }
  1080. public BAD_PARAM setExceptionBadAny( ) {
  1081. return setExceptionBadAny( CompletionStatus.COMPLETED_NO, null ) ;
  1082. }
  1083. public static final int SET_EXCEPTION_UNLISTED = OMGVMCID.value + 22 ;
  1084. public BAD_PARAM setExceptionUnlisted( CompletionStatus cs, Throwable t ) {
  1085. BAD_PARAM exc = new BAD_PARAM( SET_EXCEPTION_UNLISTED, cs ) ;
  1086. if (t != null)
  1087. exc.initCause( t ) ;
  1088. if (logger.isLoggable( Level.WARNING )) {
  1089. Object[] parameters = null ;
  1090. doLog( Level.WARNING, "OMG.setExceptionUnlisted",
  1091. parameters, OMGSystemException.class, exc ) ;
  1092. }
  1093. return exc ;
  1094. }
  1095. public BAD_PARAM setExceptionUnlisted( CompletionStatus cs ) {
  1096. return setExceptionUnlisted( cs, null ) ;
  1097. }
  1098. public BAD_PARAM setExceptionUnlisted( Throwable t ) {
  1099. return setExceptionUnlisted( CompletionStatus.COMPLETED_NO, t ) ;
  1100. }
  1101. public BAD_PARAM setExceptionUnlisted( ) {
  1102. return setExceptionUnlisted( CompletionStatus.COMPLETED_NO, null ) ;
  1103. }
  1104. public static final int NO_CLIENT_WCHAR_CODESET_CTX = OMGVMCID.value + 23 ;
  1105. public BAD_PARAM noClientWcharCodesetCtx( CompletionStatus cs, Throwable t ) {
  1106. BAD_PARAM exc = new BAD_PARAM( NO_CLIENT_WCHAR_CODESET_CTX, cs ) ;
  1107. if (t != null)
  1108. exc.initCause( t ) ;
  1109. if (logger.isLoggable( Level.WARNING )) {
  1110. Object[] parameters = null ;
  1111. doLog( Level.WARNING, "OMG.noClientWcharCodesetCtx",
  1112. parameters, OMGSystemException.class, exc ) ;
  1113. }
  1114. return exc ;
  1115. }
  1116. public BAD_PARAM noClientWcharCodesetCtx( CompletionStatus cs ) {
  1117. return noClientWcharCodesetCtx( cs, null ) ;
  1118. }
  1119. public BAD_PARAM noClientWcharCodesetCtx( Throwable t ) {
  1120. return noClientWcharCodesetCtx( CompletionStatus.COMPLETED_NO, t ) ;
  1121. }
  1122. public BAD_PARAM noClientWcharCodesetCtx( ) {
  1123. return noClientWcharCodesetCtx( CompletionStatus.COMPLETED_NO, null ) ;
  1124. }
  1125. public static final int ILLEGAL_SERVICE_CONTEXT = OMGVMCID.value + 24 ;
  1126. public BAD_PARAM illegalServiceContext( CompletionStatus cs, Throwable t ) {
  1127. BAD_PARAM exc = new BAD_PARAM( ILLEGAL_SERVICE_CONTEXT, cs ) ;
  1128. if (t != null)
  1129. exc.initCause( t ) ;
  1130. if (logger.isLoggable( Level.WARNING )) {
  1131. Object[] parameters = null ;
  1132. doLog( Level.WARNING, "OMG.illegalServiceContext",
  1133. parameters, OMGSystemException.class, exc ) ;
  1134. }
  1135. return exc ;
  1136. }
  1137. public BAD_PARAM illegalServiceContext( CompletionStatus cs ) {
  1138. return illegalServiceContext( cs, null ) ;
  1139. }
  1140. public BAD_PARAM illegalServiceContext( Throwable t ) {
  1141. return illegalServiceContext( CompletionStatus.COMPLETED_NO, t ) ;
  1142. }
  1143. public BAD_PARAM illegalServiceContext( ) {
  1144. return illegalServiceContext( CompletionStatus.COMPLETED_NO, null ) ;
  1145. }
  1146. public static final int ENUM_OUT_OF_RANGE = OMGVMCID.value + 25 ;
  1147. public BAD_PARAM enumOutOfRange( CompletionStatus cs, Throwable t ) {
  1148. BAD_PARAM exc = new BAD_PARAM( ENUM_OUT_OF_RANGE, cs ) ;
  1149. if (t != null)
  1150. exc.initCause( t ) ;
  1151. if (logger.isLoggable( Level.WARNING )) {
  1152. Object[] parameters = null ;
  1153. doLog( Level.WARNING, "OMG.enumOutOfRange",
  1154. parameters, OMGSystemException.class, exc ) ;
  1155. }
  1156. return exc ;
  1157. }
  1158. public BAD_PARAM enumOutOfRange( CompletionStatus cs ) {
  1159. return enumOutOfRange( cs, null ) ;
  1160. }
  1161. public BAD_PARAM enumOutOfRange( Throwable t ) {
  1162. return enumOutOfRange( CompletionStatus.COMPLETED_NO, t ) ;
  1163. }
  1164. public BAD_PARAM enumOutOfRange( ) {
  1165. return enumOutOfRange( CompletionStatus.COMPLETED_NO, null ) ;
  1166. }
  1167. public static final int INVALID_SERVICE_CONTEXT_ID = OMGVMCID.value + 26 ;
  1168. public BAD_PARAM invalidServiceContextId( CompletionStatus cs, Throwable t ) {
  1169. BAD_PARAM exc = new BAD_PARAM( INVALID_SERVICE_CONTEXT_ID, cs ) ;
  1170. if (t != null)
  1171. exc.initCause( t ) ;
  1172. if (logger.isLoggable( Level.FINE )) {
  1173. Object[] parameters = null ;
  1174. doLog( Level.FINE, "OMG.invalidServiceContextId",
  1175. parameters, OMGSystemException.class, exc ) ;
  1176. }
  1177. return exc ;
  1178. }
  1179. public BAD_PARAM invalidServiceContextId( CompletionStatus cs ) {
  1180. return invalidServiceContextId( cs, null ) ;
  1181. }
  1182. public BAD_PARAM invalidServiceContextId( Throwable t ) {
  1183. return invalidServiceContextId( CompletionStatus.COMPLETED_NO, t ) ;
  1184. }
  1185. public BAD_PARAM invalidServiceContextId( ) {
  1186. return invalidServiceContextId( CompletionStatus.COMPLETED_NO, null ) ;
  1187. }
  1188. public static final int RIR_WITH_NULL_OBJECT = OMGVMCID.value + 27 ;
  1189. public BAD_PARAM rirWithNullObject( CompletionStatus cs, Throwable t ) {
  1190. BAD_PARAM exc = new BAD_PARAM( RIR_WITH_NULL_OBJECT, cs ) ;
  1191. if (t != null)
  1192. exc.initCause( t ) ;
  1193. if (logger.isLoggable( Level.WARNING )) {
  1194. Object[] parameters = null ;
  1195. doLog( Level.WARNING, "OMG.rirWithNullObject",
  1196. parameters, OMGSystemException.class, exc ) ;
  1197. }
  1198. return exc ;
  1199. }
  1200. public BAD_PARAM rirWithNullObject( CompletionStatus cs ) {
  1201. return rirWithNullObject( cs, null ) ;
  1202. }
  1203. public BAD_PARAM rirWithNullObject( Throwable t ) {
  1204. return rirWithNullObject( CompletionStatus.COMPLETED_NO, t ) ;
  1205. }
  1206. public BAD_PARAM rirWithNullObject( ) {
  1207. return rirWithNullObject( CompletionStatus.COMPLETED_NO, null ) ;
  1208. }
  1209. public static final int INVALID_COMPONENT_ID = OMGVMCID.value + 28 ;
  1210. public BAD_PARAM invalidComponentId( CompletionStatus cs, Throwable t, Object arg0) {
  1211. BAD_PARAM exc = new BAD_PARAM( INVALID_COMPONENT_ID, cs ) ;
  1212. if (t != null)
  1213. exc.initCause( t ) ;
  1214. if (logger.isLoggable( Level.FINE )) {
  1215. Object[] parameters = new Object[1] ;
  1216. parameters[0] = arg0 ;
  1217. doLog( Level.FINE, "OMG.invalidComponentId",
  1218. parameters, OMGSystemException.class, exc ) ;
  1219. }
  1220. return exc ;
  1221. }
  1222. public BAD_PARAM invalidComponentId( CompletionStatus cs, Object arg0) {
  1223. return invalidComponentId( cs, null, arg0 ) ;
  1224. }
  1225. public BAD_PARAM invalidComponentId( Throwable t, Object arg0) {
  1226. return invalidComponentId( CompletionStatus.COMPLETED_NO, t, arg0 ) ;
  1227. }
  1228. public BAD_PARAM invalidComponentId( Object arg0) {
  1229. return invalidComponentId( CompletionStatus.COMPLETED_NO, null, arg0 ) ;
  1230. }
  1231. public static final int INVALID_PROFILE_ID = OMGVMCID.value + 29 ;
  1232. public BAD_PARAM invalidProfileId( CompletionStatus cs, Throwable t ) {
  1233. BAD_PARAM exc = new BAD_PARAM( INVALID_PROFILE_ID, cs ) ;
  1234. if (t != null)
  1235. exc.initCause( t ) ;
  1236. if (logger.isLoggable( Level.WARNING )) {
  1237. Object[] parameters = null ;
  1238. doLog( Level.WARNING, "OMG.invalidProfileId",
  1239. parameters, OMGSystemException.class, exc ) ;
  1240. }
  1241. return exc ;
  1242. }
  1243. public BAD_PARAM invalidProfileId( CompletionStatus cs ) {
  1244. return invalidProfileId( cs, null ) ;
  1245. }
  1246. public BAD_PARAM invalidProfileId( Throwable t ) {
  1247. return invalidProfileId( CompletionStatus.COMPLETED_NO, t ) ;
  1248. }
  1249. public BAD_PARAM invalidProfileId( ) {
  1250. return invalidProfileId( CompletionStatus.COMPLETED_NO, null ) ;
  1251. }
  1252. public static final int POLICY_TYPE_DUPLICATE = OMGVMCID.value + 30 ;
  1253. public BAD_PARAM policyTypeDuplicate( CompletionStatus cs, Throwable t ) {
  1254. BAD_PARAM exc = new BAD_PARAM( POLICY_TYPE_DUPLICATE, cs ) ;
  1255. if (t != null)
  1256. exc.initCause( t ) ;
  1257. if (logger.isLoggable( Level.WARNING )) {
  1258. Object[] parameters = null ;
  1259. doLog( Level.WARNING, "OMG.policyTypeDuplicate",
  1260. parameters, OMGSystemException.class, exc ) ;
  1261. }
  1262. return exc ;
  1263. }
  1264. public BAD_PARAM policyTypeDuplicate( CompletionStatus cs ) {
  1265. return policyTypeDuplicate( cs, null ) ;
  1266. }
  1267. public BAD_PARAM policyTypeDuplicate( Throwable t ) {
  1268. return policyTypeDuplicate( CompletionStatus.COMPLETED_NO, t ) ;
  1269. }
  1270. public BAD_PARAM policyTypeDuplicate( ) {
  1271. return policyTypeDuplicate( CompletionStatus.COMPLETED_NO, null ) ;
  1272. }
  1273. public static final int BAD_ONEWAY_DEFINITION = OMGVMCID.value + 31 ;
  1274. public BAD_PARAM badOnewayDefinition( CompletionStatus cs, Throwable t ) {
  1275. BAD_PARAM exc = new BAD_PARAM( BAD_ONEWAY_DEFINITION, cs ) ;
  1276. if (t != null)
  1277. exc.initCause( t ) ;
  1278. if (logger.isLoggable( Level.WARNING )) {
  1279. Object[] parameters = null ;
  1280. doLog( Level.WARNING, "OMG.badOnewayDefinition",
  1281. parameters, OMGSystemException.class, exc ) ;
  1282. }
  1283. return exc ;
  1284. }
  1285. public BAD_PARAM badOnewayDefinition( CompletionStatus cs ) {
  1286. return badOnewayDefinition( cs, null ) ;
  1287. }
  1288. public BAD_PARAM badOnewayDefinition( Throwable t ) {
  1289. return badOnewayDefinition( CompletionStatus.COMPLETED_NO, t ) ;
  1290. }
  1291. public BAD_PARAM badOnewayDefinition( ) {
  1292. return badOnewayDefinition( CompletionStatus.COMPLETED_NO, null ) ;
  1293. }
  1294. public static final int DII_FOR_IMPLICIT_OPERATION = OMGVMCID.value + 32 ;
  1295. public BAD_PARAM diiForImplicitOperation( CompletionStatus cs, Throwable t ) {
  1296. BAD_PARAM exc = new BAD_PARAM( DII_FOR_IMPLICIT_OPERATION, cs ) ;
  1297. if (t != null)
  1298. exc.initCause( t ) ;
  1299. if (logger.isLoggable( Level.WARNING )) {
  1300. Object[] parameters = null ;
  1301. doLog( Level.WARNING, "OMG.diiForImplicitOperation",
  1302. parameters, OMGSystemException.class, exc ) ;
  1303. }
  1304. return exc ;
  1305. }
  1306. public BAD_PARAM diiForImplicitOperation( CompletionStatus cs ) {
  1307. return diiForImplicitOperation( cs, null ) ;
  1308. }
  1309. public BAD_PARAM diiForImplicitOperation( Throwable t ) {
  1310. return diiForImplicitOperation( CompletionStatus.COMPLETED_NO, t ) ;
  1311. }
  1312. public BAD_PARAM diiForImplicitOperation( ) {
  1313. return diiForImplicitOperation( CompletionStatus.COMPLETED_NO, null ) ;
  1314. }
  1315. public static final int XA_CALL_INVAL = OMGVMCID.value + 33 ;
  1316. public BAD_PARAM xaCallInval( CompletionStatus cs, Throwable t ) {
  1317. BAD_PARAM exc = new BAD_PARAM( XA_CALL_INVAL, cs ) ;
  1318. if (t != null)
  1319. exc.initCause( t ) ;
  1320. if (logger.isLoggable( Level.WARNING )) {
  1321. Object[] parameters = null ;
  1322. doLog( Level.WARNING, "OMG.xaCallInval",
  1323. parameters, OMGSystemException.class, exc ) ;
  1324. }
  1325. return exc ;
  1326. }
  1327. public BAD_PARAM xaCallInval( CompletionStatus cs ) {
  1328. return xaCallInval( cs, null ) ;
  1329. }
  1330. public BAD_PARAM xaCallInval( Throwable t ) {
  1331. return xaCallInval( CompletionStatus.COMPLETED_NO, t ) ;
  1332. }
  1333. public BAD_PARAM xaCallInval( ) {
  1334. return xaCallInval( CompletionStatus.COMPLETED_NO, null ) ;
  1335. }
  1336. public static final int UNION_BAD_DISCRIMINATOR = OMGVMCID.value + 34 ;
  1337. public BAD_PARAM unionBadDiscriminator( CompletionStatus cs, Throwable t ) {
  1338. BAD_PARAM exc = new BAD_PARAM( UNION_BAD_DISCRIMINATOR, cs ) ;
  1339. if (t != null)
  1340. exc.initCause( t ) ;
  1341. if (logger.isLoggable( Level.WARNING )) {
  1342. Object[] parameters = null ;
  1343. doLog( Level.WARNING, "OMG.unionBadDiscriminator",
  1344. parameters, OMGSystemException.class, exc ) ;
  1345. }
  1346. return exc ;
  1347. }
  1348. public BAD_PARAM unionBadDiscriminator( CompletionStatus cs ) {
  1349. return unionBadDiscriminator( cs, null ) ;
  1350. }
  1351. public BAD_PARAM unionBadDiscriminator( Throwable t ) {
  1352. return unionBadDiscriminator( CompletionStatus.COMPLETED_NO, t ) ;
  1353. }
  1354. public BAD_PARAM unionBadDiscriminator( ) {
  1355. return unionBadDiscriminator( CompletionStatus.COMPLETED_NO, null ) ;
  1356. }
  1357. public static final int CTX_ILLEGAL_PROPERTY_NAME = OMGVMCID.value + 35 ;
  1358. public BAD_PARAM ctxIllegalPropertyName( CompletionStatus cs, Throwable t ) {
  1359. BAD_PARAM exc = new BAD_PARAM( CTX_ILLEGAL_PROPERTY_NAME, cs ) ;
  1360. if (t != null)
  1361. exc.initCause( t ) ;
  1362. if (logger.isLoggable( Level.WARNING )) {
  1363. Object[] parameters = null ;
  1364. doLog( Level.WARNING, "OMG.ctxIllegalPropertyName",
  1365. parameters, OMGSystemException.class, exc ) ;
  1366. }
  1367. return exc ;
  1368. }
  1369. public BAD_PARAM ctxIllegalPropertyName( CompletionStatus cs ) {
  1370. return ctxIllegalPropertyName( cs, null ) ;
  1371. }
  1372. public BAD_PARAM ctxIllegalPropertyName( Throwable t ) {
  1373. return ctxIllegalPropertyName( CompletionStatus.COMPLETED_NO, t ) ;
  1374. }
  1375. public BAD_PARAM ctxIllegalPropertyName( ) {
  1376. return ctxIllegalPropertyName( CompletionStatus.COMPLETED_NO, null ) ;
  1377. }
  1378. public static final int CTX_ILLEGAL_SEARCH_STRING = OMGVMCID.value + 36 ;
  1379. public BAD_PARAM ctxIllegalSearchString( CompletionStatus cs, Throwable t ) {
  1380. BAD_PARAM exc = new BAD_PARAM( CTX_ILLEGAL_SEARCH_STRING, cs ) ;
  1381. if (t != null)
  1382. exc.initCause( t ) ;
  1383. if (logger.isLoggable( Level.WARNING )) {
  1384. Object[] parameters = null ;
  1385. doLog( Level.WARNING, "OMG.ctxIllegalSearchString",
  1386. parameters, OMGSystemException.class, exc ) ;
  1387. }
  1388. return exc ;
  1389. }
  1390. public BAD_PARAM ctxIllegalSearchString( CompletionStatus cs ) {
  1391. return ctxIllegalSearchString( cs, null ) ;
  1392. }
  1393. public BAD_PARAM ctxIllegalSearchString( Throwable t ) {
  1394. return ctxIllegalSearchString( CompletionStatus.COMPLETED_NO, t ) ;
  1395. }
  1396. public BAD_PARAM ctxIllegalSearchString( ) {
  1397. return ctxIllegalSearchString( CompletionStatus.COMPLETED_NO, null ) ;
  1398. }
  1399. public static final int CTX_ILLEGAL_NAME = OMGVMCID.value + 37 ;
  1400. public BAD_PARAM ctxIllegalName( CompletionStatus cs, Throwable t ) {
  1401. BAD_PARAM exc = new BAD_PARAM( CTX_ILLEGAL_NAME, cs ) ;
  1402. if (t != null)
  1403. exc.initCause( t ) ;
  1404. if (logger.isLoggable( Level.WARNING )) {
  1405. Object[] parameters = null ;
  1406. doLog( Level.WARNING, "OMG.ctxIllegalName",
  1407. parameters, OMGSystemException.class, exc ) ;
  1408. }
  1409. return exc ;
  1410. }
  1411. public BAD_PARAM ctxIllegalName( CompletionStatus cs ) {
  1412. return ctxIllegalName( cs, null ) ;
  1413. }
  1414. public BAD_PARAM ctxIllegalName( Throwable t ) {
  1415. return ctxIllegalName( CompletionStatus.COMPLETED_NO, t ) ;
  1416. }
  1417. public BAD_PARAM ctxIllegalName( ) {
  1418. return ctxIllegalName( CompletionStatus.COMPLETED_NO, null ) ;
  1419. }
  1420. public static final int CTX_NON_EMPTY = OMGVMCID.value + 38 ;
  1421. public BAD_PARAM ctxNonEmpty( CompletionStatus cs, Throwable t ) {
  1422. BAD_PARAM exc = new BAD_PARAM( CTX_NON_EMPTY, cs ) ;
  1423. if (t != null)
  1424. exc.initCause( t ) ;
  1425. if (logger.isLoggable( Level.WARNING )) {
  1426. Object[] parameters = null ;
  1427. doLog( Level.WARNING, "OMG.ctxNonEmpty",
  1428. parameters, OMGSystemException.class, exc ) ;
  1429. }
  1430. return exc ;
  1431. }
  1432. public BAD_PARAM ctxNonEmpty( CompletionStatus cs ) {
  1433. return ctxNonEmpty( cs, null ) ;
  1434. }
  1435. public BAD_PARAM ctxNonEmpty( Throwable t ) {
  1436. return ctxNonEmpty( CompletionStatus.COMPLETED_NO, t ) ;
  1437. }
  1438. public BAD_PARAM ctxNonEmpty( ) {
  1439. return ctxNonEmpty( CompletionStatus.COMPLETED_NO, null ) ;
  1440. }
  1441. public static final int INVALID_STREAM_FORMAT_VERSION = OMGVMCID.value + 39 ;
  1442. public BAD_PARAM invalidStreamFormatVersion( CompletionStatus cs, Throwable t, Object arg0) {
  1443. BAD_PARAM exc = new BAD_PARAM( INVALID_STREAM_FORMAT_VERSION, cs ) ;
  1444. if (t != null)
  1445. exc.initCause( t ) ;
  1446. if (logger.isLoggable( Level.WARNING )) {
  1447. Object[] parameters = new Object[1] ;
  1448. parameters[0] = arg0 ;
  1449. doLog( Level.WARNING, "OMG.invalidStreamFormatVersion",
  1450. parameters, OMGSystemException.class, exc ) ;
  1451. }
  1452. return exc ;
  1453. }
  1454. public BAD_PARAM invalidStreamFormatVersion( CompletionStatus cs, Object arg0) {
  1455. return invalidStreamFormatVersion( cs, null, arg0 ) ;
  1456. }
  1457. public BAD_PARAM invalidStreamFormatVersion( Throwable t, Object arg0) {
  1458. return invalidStreamFormatVersion( CompletionStatus.COMPLETED_NO, t, arg0 ) ;
  1459. }
  1460. public BAD_PARAM invalidStreamFormatVersion( Object arg0) {
  1461. return invalidStreamFormatVersion( CompletionStatus.COMPLETED_NO, null, arg0 ) ;
  1462. }
  1463. public static final int NOT_A_VALUEOUTPUTSTREAM = OMGVMCID.value + 40 ;
  1464. public BAD_PARAM notAValueoutputstream( CompletionStatus cs, Throwable t ) {
  1465. BAD_PARAM exc = new BAD_PARAM( NOT_A_VALUEOUTPUTSTREAM, cs ) ;
  1466. if (t != null)
  1467. exc.initCause( t ) ;
  1468. if (logger.isLoggable( Level.WARNING )) {
  1469. Object[] parameters = null ;
  1470. doLog( Level.WARNING, "OMG.notAValueoutputstream",
  1471. parameters, OMGSystemException.class, exc ) ;
  1472. }
  1473. return exc ;
  1474. }
  1475. public BAD_PARAM notAValueoutputstream( CompletionStatus cs ) {
  1476. return notAValueoutputstream( cs, null ) ;
  1477. }
  1478. public BAD_PARAM notAValueoutputstream( Throwable t ) {
  1479. return notAValueoutputstream( CompletionStatus.COMPLETED_NO, t ) ;
  1480. }
  1481. public BAD_PARAM notAValueoutputstream( ) {
  1482. return notAValueoutputstream( CompletionStatus.COMPLETED_NO, null ) ;
  1483. }
  1484. public static final int NOT_A_VALUEINPUTSTREAM = OMGVMCID.value + 41 ;
  1485. public BAD_PARAM notAValueinputstream( CompletionStatus cs, Throwable t ) {
  1486. BAD_PARAM exc = new BAD_PARAM( NOT_A_VALUEINPUTSTREAM, cs ) ;
  1487. if (t != null)
  1488. exc.initCause( t ) ;
  1489. if (logger.isLoggable( Level.WARNING )) {
  1490. Object[] parameters = null ;
  1491. doLog( Level.WARNING, "OMG.notAValueinputstream",
  1492. parameters, OMGSystemException.class, exc ) ;
  1493. }
  1494. return exc ;
  1495. }
  1496. public BAD_PARAM notAValueinputstream( CompletionStatus cs ) {
  1497. return notAValueinputstream( cs, null ) ;
  1498. }
  1499. public BAD_PARAM notAValueinputstream( Throwable t ) {
  1500. return notAValueinputstream( CompletionStatus.COMPLETED_NO, t ) ;
  1501. }
  1502. public BAD_PARAM notAValueinputstream( ) {
  1503. return notAValueinputstream( CompletionStatus.COMPLETED_NO, null ) ;
  1504. }
  1505. ///////////////////////////////////////////////////////////
  1506. // BAD_TYPECODE
  1507. ///////////////////////////////////////////////////////////
  1508. public static final int MARSHALL_INCOMPLETE_TYPECODE = OMGVMCID.value + 1 ;
  1509. public BAD_TYPECODE marshallIncompleteTypecode( CompletionStatus cs, Throwable t ) {
  1510. BAD_TYPECODE exc = new BAD_TYPECODE( MARSHALL_INCOMPLETE_TYPECODE, cs ) ;
  1511. if (t != null)
  1512. exc.initCause( t ) ;
  1513. if (logger.isLoggable( Level.WARNING )) {
  1514. Object[] parameters = null ;
  1515. doLog( Level.WARNING, "OMG.marshallIncompleteTypecode",
  1516. parameters, OMGSystemException.class, exc ) ;
  1517. }
  1518. return exc ;
  1519. }
  1520. public BAD_TYPECODE marshallIncompleteTypecode( CompletionStatus cs ) {
  1521. return marshallIncompleteTypecode( cs, null ) ;
  1522. }
  1523. public BAD_TYPECODE marshallIncompleteTypecode( Throwable t ) {
  1524. return marshallIncompleteTypecode( CompletionStatus.COMPLETED_NO, t ) ;
  1525. }
  1526. public BAD_TYPECODE marshallIncompleteTypecode( ) {
  1527. return marshallIncompleteTypecode( CompletionStatus.COMPLETED_NO, null ) ;
  1528. }
  1529. public static final int BAD_MEMBER_TYPECODE = OMGVMCID.value + 2 ;
  1530. public BAD_TYPECODE badMemberTypecode( CompletionStatus cs, Throwable t ) {
  1531. BAD_TYPECODE exc = new BAD_TYPECODE( BAD_MEMBER_TYPECODE, cs ) ;
  1532. if (t != null)
  1533. exc.initCause( t ) ;
  1534. if (logger.isLoggable( Level.WARNING )) {
  1535. Object[] parameters = null ;
  1536. doLog( Level.WARNING, "OMG.badMemberTypecode",
  1537. parameters, OMGSystemException.class, exc ) ;
  1538. }
  1539. return exc ;
  1540. }
  1541. public BAD_TYPECODE badMemberTypecode( CompletionStatus cs ) {
  1542. return badMemberTypecode( cs, null ) ;
  1543. }
  1544. public BAD_TYPECODE badMemberTypecode( Throwable t ) {
  1545. return badMemberTypecode( CompletionStatus.COMPLETED_NO, t ) ;
  1546. }
  1547. public BAD_TYPECODE badMemberTypecode( ) {
  1548. return badMemberTypecode( CompletionStatus.COMPLETED_NO, null ) ;
  1549. }
  1550. public static final int ILLEGAL_PARAMETER = OMGVMCID.value + 3 ;
  1551. public BAD_TYPECODE illegalParameter( CompletionStatus cs, Throwable t ) {
  1552. BAD_TYPECODE exc = new BAD_TYPECODE( ILLEGAL_PARAMETER, cs ) ;
  1553. if (t != null)
  1554. exc.initCause( t ) ;
  1555. if (logger.isLoggable( Level.WARNING )) {
  1556. Object[] parameters = null ;
  1557. doLog( Level.WARNING, "OMG.illegalParameter",
  1558. parameters, OMGSystemException.class, exc ) ;
  1559. }
  1560. return exc ;
  1561. }
  1562. public BAD_TYPECODE illegalParameter( CompletionStatus cs ) {
  1563. return illegalParameter( cs, null ) ;
  1564. }
  1565. public BAD_TYPECODE illegalParameter( Throwable t ) {
  1566. return illegalParameter( CompletionStatus.COMPLETED_NO, t ) ;
  1567. }
  1568. public BAD_TYPECODE illegalParameter( ) {
  1569. return illegalParameter( CompletionStatus.COMPLETED_NO, null ) ;
  1570. }
  1571. ///////////////////////////////////////////////////////////
  1572. // DATA_CONVERSION
  1573. ///////////////////////////////////////////////////////////
  1574. public static final int CHAR_NOT_IN_CODESET = OMGVMCID.value + 1 ;
  1575. public DATA_CONVERSION charNotInCodeset( CompletionStatus cs, Throwable t ) {
  1576. DATA_CONVERSION exc = new DATA_CONVERSION( CHAR_NOT_IN_CODESET, cs ) ;
  1577. if (t != null)
  1578. exc.initCause( t ) ;
  1579. if (logger.isLoggable( Level.WARNING )) {
  1580. Object[] parameters = null ;
  1581. doLog( Level.WARNING, "OMG.charNotInCodeset",
  1582. parameters, OMGSystemException.class, exc ) ;
  1583. }
  1584. return exc ;
  1585. }
  1586. public DATA_CONVERSION charNotInCodeset( CompletionStatus cs ) {
  1587. return charNotInCodeset( cs, null ) ;
  1588. }
  1589. public DATA_CONVERSION charNotInCodeset( Throwable t ) {
  1590. return charNotInCodeset( CompletionStatus.COMPLETED_NO, t ) ;
  1591. }
  1592. public DATA_CONVERSION charNotInCodeset( ) {
  1593. return charNotInCodeset( CompletionStatus.COMPLETED_NO, null ) ;
  1594. }
  1595. public static final int PRIORITY_MAP_FAILRE = OMGVMCID.value + 2 ;
  1596. public DATA_CONVERSION priorityMapFailre( CompletionStatus cs, Throwable t ) {
  1597. DATA_CONVERSION exc = new DATA_CONVERSION( PRIORITY_MAP_FAILRE, cs ) ;
  1598. if (t != null)
  1599. exc.initCause( t ) ;
  1600. if (logger.isLoggable( Level.WARNING )) {
  1601. Object[] parameters = null ;
  1602. doLog( Level.WARNING, "OMG.priorityMapFailre",
  1603. parameters, OMGSystemException.class, exc ) ;
  1604. }
  1605. return exc ;
  1606. }
  1607. public DATA_CONVERSION priorityMapFailre( CompletionStatus cs ) {
  1608. return priorityMapFailre( cs, null ) ;
  1609. }
  1610. public DATA_CONVERSION priorityMapFailre( Throwable t ) {
  1611. return priorityMapFailre( CompletionStatus.COMPLETED_NO, t ) ;
  1612. }
  1613. public DATA_CONVERSION priorityMapFailre( ) {
  1614. return priorityMapFailre( CompletionStatus.COMPLETED_NO, null ) ;
  1615. }
  1616. ///////////////////////////////////////////////////////////
  1617. // IMP_LIMIT
  1618. ///////////////////////////////////////////////////////////
  1619. public static final int NO_USABLE_PROFILE = OMGVMCID.value + 1 ;
  1620. public IMP_LIMIT noUsableProfile( CompletionStatus cs, Throwable t ) {
  1621. IMP_LIMIT exc = new IMP_LIMIT( NO_USABLE_PROFILE, cs ) ;
  1622. if (t != null)
  1623. exc.initCause( t ) ;
  1624. if (logger.isLoggable( Level.WARNING )) {
  1625. Object[] parameters = null ;
  1626. doLog( Level.WARNING, "OMG.noUsableProfile",
  1627. parameters, OMGSystemException.class, exc ) ;
  1628. }
  1629. return exc ;
  1630. }
  1631. public IMP_LIMIT noUsableProfile( CompletionStatus cs ) {
  1632. return noUsableProfile( cs, null ) ;
  1633. }
  1634. public IMP_LIMIT noUsableProfile( Throwable t ) {
  1635. return noUsableProfile( CompletionStatus.COMPLETED_NO, t ) ;
  1636. }
  1637. public IMP_LIMIT noUsableProfile( ) {
  1638. return noUsableProfile( CompletionStatus.COMPLETED_NO, null ) ;
  1639. }
  1640. ///////////////////////////////////////////////////////////
  1641. // INITIALIZE
  1642. ///////////////////////////////////////////////////////////
  1643. public static final int PRIORITY_RANGE_RESTRICT = OMGVMCID.value + 1 ;
  1644. public INITIALIZE priorityRangeRestrict( CompletionStatus cs, Throwable t ) {
  1645. INITIALIZE exc = new INITIALIZE( PRIORITY_RANGE_RESTRICT, cs ) ;
  1646. if (t != null)
  1647. exc.initCause( t ) ;
  1648. if (logger.isLoggable( Level.WARNING )) {
  1649. Object[] parameters = null ;
  1650. doLog( Level.WARNING, "OMG.priorityRangeRestrict",
  1651. parameters, OMGSystemException.class, exc ) ;
  1652. }
  1653. return exc ;
  1654. }
  1655. public INITIALIZE priorityRangeRestrict( CompletionStatus cs ) {
  1656. return priorityRangeRestrict( cs, null ) ;
  1657. }
  1658. public INITIALIZE priorityRangeRestrict( Throwable t ) {
  1659. return priorityRangeRestrict( CompletionStatus.COMPLETED_NO, t ) ;
  1660. }
  1661. public INITIALIZE priorityRangeRestrict( ) {
  1662. return priorityRangeRestrict( CompletionStatus.COMPLETED_NO, null ) ;
  1663. }
  1664. ///////////////////////////////////////////////////////////
  1665. // INV_OBJREF
  1666. ///////////////////////////////////////////////////////////
  1667. public static final int NO_SERVER_WCHAR_CODESET_CMP = OMGVMCID.value + 1 ;
  1668. public INV_OBJREF noServerWcharCodesetCmp( CompletionStatus cs, Throwable t ) {
  1669. INV_OBJREF exc = new INV_OBJREF( NO_SERVER_WCHAR_CODESET_CMP, cs ) ;
  1670. if (t != null)
  1671. exc.initCause( t ) ;
  1672. if (logger.isLoggable( Level.WARNING )) {
  1673. Object[] parameters = null ;
  1674. doLog( Level.WARNING, "OMG.noServerWcharCodesetCmp",
  1675. parameters, OMGSystemException.class, exc ) ;
  1676. }
  1677. return exc ;
  1678. }
  1679. public INV_OBJREF noServerWcharCodesetCmp( CompletionStatus cs ) {
  1680. return noServerWcharCodesetCmp( cs, null ) ;
  1681. }
  1682. public INV_OBJREF noServerWcharCodesetCmp( Throwable t ) {
  1683. return noServerWcharCodesetCmp( CompletionStatus.COMPLETED_NO, t ) ;
  1684. }
  1685. public INV_OBJREF noServerWcharCodesetCmp( ) {
  1686. return noServerWcharCodesetCmp( CompletionStatus.COMPLETED_NO, null ) ;
  1687. }
  1688. public static final int CODESET_COMPONENT_REQUIRED = OMGVMCID.value + 2 ;
  1689. public INV_OBJREF codesetComponentRequired( CompletionStatus cs, Throwable t ) {
  1690. INV_OBJREF exc = new INV_OBJREF( CODESET_COMPONENT_REQUIRED, cs ) ;
  1691. if (t != null)
  1692. exc.initCause( t ) ;
  1693. if (logger.isLoggable( Level.WARNING )) {
  1694. Object[] parameters = null ;
  1695. doLog( Level.WARNING, "OMG.codesetComponentRequired",
  1696. parameters, OMGSystemException.class, exc ) ;
  1697. }
  1698. return exc ;
  1699. }
  1700. public INV_OBJREF codesetComponentRequired( CompletionStatus cs ) {
  1701. return codesetComponentRequired( cs, null ) ;
  1702. }
  1703. public INV_OBJREF codesetComponentRequired( Throwable t ) {
  1704. return codesetComponentRequired( CompletionStatus.COMPLETED_NO, t ) ;
  1705. }
  1706. public INV_OBJREF codesetComponentRequired( ) {
  1707. return codesetComponentRequired( CompletionStatus.COMPLETED_NO, null ) ;
  1708. }
  1709. ///////////////////////////////////////////////////////////
  1710. // INV_POLICY
  1711. ///////////////////////////////////////////////////////////
  1712. public static final int IOR_POLICY_RECONCILE_ERROR = OMGVMCID.value + 1 ;
  1713. public INV_POLICY iorPolicyReconcileError( CompletionStatus cs, Throwable t ) {
  1714. INV_POLICY exc = new INV_POLICY( IOR_POLICY_RECONCILE_ERROR, cs ) ;
  1715. if (t != null)
  1716. exc.initCause( t ) ;
  1717. if (logger.isLoggable( Level.WARNING )) {
  1718. Object[] parameters = null ;
  1719. doLog( Level.WARNING, "OMG.iorPolicyReconcileError",
  1720. parameters, OMGSystemException.class, exc ) ;
  1721. }
  1722. return exc ;
  1723. }
  1724. public INV_POLICY iorPolicyReconcileError( CompletionStatus cs ) {
  1725. return iorPolicyReconcileError( cs, null ) ;
  1726. }
  1727. public INV_POLICY iorPolicyReconcileError( Throwable t ) {
  1728. return iorPolicyReconcileError( CompletionStatus.COMPLETED_NO, t ) ;
  1729. }
  1730. public INV_POLICY iorPolicyReconcileError( ) {
  1731. return iorPolicyReconcileError( CompletionStatus.COMPLETED_NO, null ) ;
  1732. }
  1733. public static final int POLICY_UNKNOWN = OMGVMCID.value + 2 ;
  1734. public INV_POLICY policyUnknown( CompletionStatus cs, Throwable t ) {
  1735. INV_POLICY exc = new INV_POLICY( POLICY_UNKNOWN, cs ) ;
  1736. if (t != null)
  1737. exc.initCause( t ) ;
  1738. if (logger.isLoggable( Level.WARNING )) {
  1739. Object[] parameters = null ;
  1740. doLog( Level.WARNING, "OMG.policyUnknown",
  1741. parameters, OMGSystemException.class, exc ) ;
  1742. }
  1743. return exc ;
  1744. }
  1745. public INV_POLICY policyUnknown( CompletionStatus cs ) {
  1746. return policyUnknown( cs, null ) ;
  1747. }
  1748. public INV_POLICY policyUnknown( Throwable t ) {
  1749. return policyUnknown( CompletionStatus.COMPLETED_NO, t ) ;
  1750. }
  1751. public INV_POLICY policyUnknown( ) {
  1752. return policyUnknown( CompletionStatus.COMPLETED_NO, null ) ;
  1753. }
  1754. public static final int NO_POLICY_FACTORY = OMGVMCID.value + 3 ;
  1755. public INV_POLICY noPolicyFactory( CompletionStatus cs, Throwable t ) {
  1756. INV_POLICY exc = new INV_POLICY( NO_POLICY_FACTORY, cs ) ;
  1757. if (t != null)
  1758. exc.initCause( t ) ;
  1759. if (logger.isLoggable( Level.WARNING )) {
  1760. Object[] parameters = null ;
  1761. doLog( Level.WARNING, "OMG.noPolicyFactory",
  1762. parameters, OMGSystemException.class, exc ) ;
  1763. }
  1764. return exc ;
  1765. }
  1766. public INV_POLICY noPolicyFactory( CompletionStatus cs ) {
  1767. return noPolicyFactory( cs, null ) ;
  1768. }
  1769. public INV_POLICY noPolicyFactory( Throwable t ) {
  1770. return noPolicyFactory( CompletionStatus.COMPLETED_NO, t ) ;
  1771. }
  1772. public INV_POLICY noPolicyFactory( ) {
  1773. return noPolicyFactory( CompletionStatus.COMPLETED_NO, null ) ;
  1774. }
  1775. ///////////////////////////////////////////////////////////
  1776. // INTERNAL
  1777. ///////////////////////////////////////////////////////////
  1778. public static final int XA_RMERR = OMGVMCID.value + 1 ;
  1779. public INTERNAL xaRmerr( CompletionStatus cs, Throwable t ) {
  1780. INTERNAL exc = new INTERNAL( XA_RMERR, cs ) ;
  1781. if (t != null)
  1782. exc.initCause( t ) ;
  1783. if (logger.isLoggable( Level.WARNING )) {
  1784. Object[] parameters = null ;
  1785. doLog( Level.WARNING, "OMG.xaRmerr",
  1786. parameters, OMGSystemException.class, exc ) ;
  1787. }
  1788. return exc ;
  1789. }
  1790. public INTERNAL xaRmerr( CompletionStatus cs ) {
  1791. return xaRmerr( cs, null ) ;
  1792. }
  1793. public INTERNAL xaRmerr( Throwable t ) {
  1794. return xaRmerr( CompletionStatus.COMPLETED_NO, t ) ;
  1795. }
  1796. public INTERNAL xaRmerr( ) {
  1797. return xaRmerr( CompletionStatus.COMPLETED_NO, null ) ;
  1798. }
  1799. public static final int XA_RMFAIL = OMGVMCID.value + 2 ;
  1800. public INTERNAL xaRmfail( CompletionStatus cs, Throwable t ) {
  1801. INTERNAL exc = new INTERNAL( XA_RMFAIL, cs ) ;
  1802. if (t != null)
  1803. exc.initCause( t ) ;
  1804. if (logger.isLoggable( Level.WARNING )) {
  1805. Object[] parameters = null ;
  1806. doLog( Level.WARNING, "OMG.xaRmfail",
  1807. parameters, OMGSystemException.class, exc ) ;
  1808. }
  1809. return exc ;
  1810. }
  1811. public INTERNAL xaRmfail( CompletionStatus cs ) {
  1812. return xaRmfail( cs, null ) ;
  1813. }
  1814. public INTERNAL xaRmfail( Throwable t ) {
  1815. return xaRmfail( CompletionStatus.COMPLETED_NO, t ) ;
  1816. }
  1817. public INTERNAL xaRmfail( ) {
  1818. return xaRmfail( CompletionStatus.COMPLETED_NO, null ) ;
  1819. }
  1820. ///////////////////////////////////////////////////////////
  1821. // INTF_REPOS
  1822. ///////////////////////////////////////////////////////////
  1823. public static final int NO_IR = OMGVMCID.value + 1 ;
  1824. public INTF_REPOS noIr( CompletionStatus cs, Throwable t ) {
  1825. INTF_REPOS exc = new INTF_REPOS( NO_IR, cs ) ;
  1826. if (t != null)
  1827. exc.initCause( t ) ;
  1828. if (logger.isLoggable( Level.WARNING )) {
  1829. Object[] parameters = null ;
  1830. doLog( Level.WARNING, "OMG.noIr",
  1831. parameters, OMGSystemException.class, exc ) ;
  1832. }
  1833. return exc ;
  1834. }
  1835. public INTF_REPOS noIr( CompletionStatus cs ) {
  1836. return noIr( cs, null ) ;
  1837. }
  1838. public INTF_REPOS noIr( Throwable t ) {
  1839. return noIr( CompletionStatus.COMPLETED_NO, t ) ;
  1840. }
  1841. public INTF_REPOS noIr( ) {
  1842. return noIr( CompletionStatus.COMPLETED_NO, null ) ;
  1843. }
  1844. public static final int NO_INTERFACE_IN_IR = OMGVMCID.value + 2 ;
  1845. public INTF_REPOS noInterfaceInIr( CompletionStatus cs, Throwable t ) {
  1846. INTF_REPOS exc = new INTF_REPOS( NO_INTERFACE_IN_IR, cs ) ;
  1847. if (t != null)
  1848. exc.initCause( t ) ;
  1849. if (logger.isLoggable( Level.WARNING )) {
  1850. Object[] parameters = null ;
  1851. doLog( Level.WARNING, "OMG.noInterfaceInIr",
  1852. parameters, OMGSystemException.class, exc ) ;
  1853. }
  1854. return exc ;
  1855. }
  1856. public INTF_REPOS noInterfaceInIr( CompletionStatus cs ) {
  1857. return noInterfaceInIr( cs, null ) ;
  1858. }
  1859. public INTF_REPOS noInterfaceInIr( Throwable t ) {
  1860. return noInterfaceInIr( CompletionStatus.COMPLETED_NO, t ) ;
  1861. }
  1862. public INTF_REPOS noInterfaceInIr( ) {
  1863. return noInterfaceInIr( CompletionStatus.COMPLETED_NO, null ) ;
  1864. }
  1865. ///////////////////////////////////////////////////////////
  1866. // MARSHAL
  1867. ///////////////////////////////////////////////////////////
  1868. public static final int UNABLE_LOCATE_VALUE_FACTORY = OMGVMCID.value + 1 ;
  1869. public MARSHAL unableLocateValueFactory( CompletionStatus cs, Throwable t ) {
  1870. MARSHAL exc = new MARSHAL( UNABLE_LOCATE_VALUE_FACTORY, cs ) ;
  1871. if (t != null)
  1872. exc.initCause( t ) ;
  1873. if (logger.isLoggable( Level.FINE )) {
  1874. Object[] parameters = null ;
  1875. doLog( Level.FINE, "OMG.unableLocateValueFactory",
  1876. parameters, OMGSystemException.class, exc ) ;
  1877. }
  1878. return exc ;
  1879. }
  1880. public MARSHAL unableLocateValueFactory( CompletionStatus cs ) {
  1881. return unableLocateValueFactory( cs, null ) ;
  1882. }
  1883. public MARSHAL unableLocateValueFactory( Throwable t ) {
  1884. return unableLocateValueFactory( CompletionStatus.COMPLETED_NO, t ) ;
  1885. }
  1886. public MARSHAL unableLocateValueFactory( ) {
  1887. return unableLocateValueFactory( CompletionStatus.COMPLETED_NO, null ) ;
  1888. }
  1889. public static final int SET_RESULT_BEFORE_CTX = OMGVMCID.value + 2 ;
  1890. public MARSHAL setResultBeforeCtx( CompletionStatus cs, Throwable t ) {
  1891. MARSHAL exc = new MARSHAL( SET_RESULT_BEFORE_CTX, cs ) ;
  1892. if (t != null)
  1893. exc.initCause( t ) ;
  1894. if (logger.isLoggable( Level.WARNING )) {
  1895. Object[] parameters = null ;
  1896. doLog( Level.WARNING, "OMG.setResultBeforeCtx",
  1897. parameters, OMGSystemException.class, exc ) ;
  1898. }
  1899. return exc ;
  1900. }
  1901. public MARSHAL setResultBeforeCtx( CompletionStatus cs ) {
  1902. return setResultBeforeCtx( cs, null ) ;
  1903. }
  1904. public MARSHAL setResultBeforeCtx( Throwable t ) {
  1905. return setResultBeforeCtx( CompletionStatus.COMPLETED_NO, t ) ;
  1906. }
  1907. public MARSHAL setResultBeforeCtx( ) {
  1908. return setResultBeforeCtx( CompletionStatus.COMPLETED_NO, null ) ;
  1909. }
  1910. public static final int BAD_NVLIST = OMGVMCID.value + 3 ;
  1911. public MARSHAL badNvlist( CompletionStatus cs, Throwable t ) {
  1912. MARSHAL exc = new MARSHAL( BAD_NVLIST, cs ) ;
  1913. if (t != null)
  1914. exc.initCause( t ) ;
  1915. if (logger.isLoggable( Level.WARNING )) {
  1916. Object[] parameters = null ;
  1917. doLog( Level.WARNING, "OMG.badNvlist",
  1918. parameters, OMGSystemException.class, exc ) ;
  1919. }
  1920. return exc ;
  1921. }
  1922. public MARSHAL badNvlist( CompletionStatus cs ) {
  1923. return badNvlist( cs, null ) ;
  1924. }
  1925. public MARSHAL badNvlist( Throwable t ) {
  1926. return badNvlist( CompletionStatus.COMPLETED_NO, t ) ;
  1927. }
  1928. public MARSHAL badNvlist( ) {
  1929. return badNvlist( CompletionStatus.COMPLETED_NO, null ) ;
  1930. }
  1931. public static final int NOT_AN_OBJECT_IMPL = OMGVMCID.value + 4 ;
  1932. public MARSHAL notAnObjectImpl( CompletionStatus cs, Throwable t ) {
  1933. MARSHAL exc = new MARSHAL( NOT_AN_OBJECT_IMPL, cs ) ;
  1934. if (t != null)
  1935. exc.initCause( t ) ;
  1936. if (logger.isLoggable( Level.WARNING )) {
  1937. Object[] parameters = null ;
  1938. doLog( Level.WARNING, "OMG.notAnObjectImpl",
  1939. parameters, OMGSystemException.class, exc ) ;
  1940. }
  1941. return exc ;
  1942. }
  1943. public MARSHAL notAnObjectImpl( CompletionStatus cs ) {
  1944. return notAnObjectImpl( cs, null ) ;
  1945. }
  1946. public MARSHAL notAnObjectImpl( Throwable t ) {
  1947. return notAnObjectImpl( CompletionStatus.COMPLETED_NO, t ) ;
  1948. }
  1949. public MARSHAL notAnObjectImpl( ) {
  1950. return notAnObjectImpl( CompletionStatus.COMPLETED_NO, null ) ;
  1951. }
  1952. public static final int WCHAR_BAD_GIOP_VERSION_SENT = OMGVMCID.value + 5 ;
  1953. public MARSHAL wcharBadGiopVersionSent( CompletionStatus cs, Throwable t ) {
  1954. MARSHAL exc = new MARSHAL( WCHAR_BAD_GIOP_VERSION_SENT, cs ) ;
  1955. if (t != null)
  1956. exc.initCause( t ) ;
  1957. if (logger.isLoggable( Level.WARNING )) {
  1958. Object[] parameters = null ;
  1959. doLog( Level.WARNING, "OMG.wcharBadGiopVersionSent",
  1960. parameters, OMGSystemException.class, exc ) ;
  1961. }
  1962. return exc ;
  1963. }
  1964. public MARSHAL wcharBadGiopVersionSent( CompletionStatus cs ) {
  1965. return wcharBadGiopVersionSent( cs, null ) ;
  1966. }
  1967. public MARSHAL wcharBadGiopVersionSent( Throwable t ) {
  1968. return wcharBadGiopVersionSent( CompletionStatus.COMPLETED_NO, t ) ;
  1969. }
  1970. public MARSHAL wcharBadGiopVersionSent( ) {
  1971. return wcharBadGiopVersionSent( CompletionStatus.COMPLETED_NO, null ) ;
  1972. }
  1973. public static final int WCHAR_BAD_GIOP_VERSION_RETURNED = OMGVMCID.value + 6 ;
  1974. public MARSHAL wcharBadGiopVersionReturned( CompletionStatus cs, Throwable t ) {
  1975. MARSHAL exc = new MARSHAL( WCHAR_BAD_GIOP_VERSION_RETURNED, cs ) ;
  1976. if (t != null)
  1977. exc.initCause( t ) ;
  1978. if (logger.isLoggable( Level.WARNING )) {
  1979. Object[] parameters = null ;
  1980. doLog( Level.WARNING, "OMG.wcharBadGiopVersionReturned",
  1981. parameters, OMGSystemException.class, exc ) ;
  1982. }
  1983. return exc ;
  1984. }
  1985. public MARSHAL wcharBadGiopVersionReturned( CompletionStatus cs ) {
  1986. return wcharBadGiopVersionReturned( cs, null ) ;
  1987. }
  1988. public MARSHAL wcharBadGiopVersionReturned( Throwable t ) {
  1989. return wcharBadGiopVersionReturned( CompletionStatus.COMPLETED_NO, t ) ;
  1990. }
  1991. public MARSHAL wcharBadGiopVersionReturned( ) {
  1992. return wcharBadGiopVersionReturned( CompletionStatus.COMPLETED_NO, null ) ;
  1993. }
  1994. public static final int UNSUPPORTED_FORMAT_VERSION = OMGVMCID.value + 7 ;
  1995. public MARSHAL unsupportedFormatVersion( CompletionStatus cs, Throwable t ) {
  1996. MARSHAL exc = new MARSHAL( UNSUPPORTED_FORMAT_VERSION, cs ) ;
  1997. if (t != null)
  1998. exc.initCause( t ) ;
  1999. if (logger.isLoggable( Level.WARNING )) {
  2000. Object[] parameters = null ;
  2001. doLog( Level.WARNING, "OMG.unsupportedFormatVersion",
  2002. parameters, OMGSystemException.class, exc ) ;
  2003. }
  2004. return exc ;
  2005. }
  2006. public MARSHAL unsupportedFormatVersion( CompletionStatus cs ) {
  2007. return unsupportedFormatVersion( cs, null ) ;
  2008. }
  2009. public MARSHAL unsupportedFormatVersion( Throwable t ) {
  2010. return unsupportedFormatVersion( CompletionStatus.COMPLETED_NO, t ) ;
  2011. }
  2012. public MARSHAL unsupportedFormatVersion( ) {
  2013. return unsupportedFormatVersion( CompletionStatus.COMPLETED_NO, null ) ;
  2014. }
  2015. public static final int RMIIIOP_OPTIONAL_DATA_INCOMPATIBLE1 = OMGVMCID.value + 8 ;
  2016. public MARSHAL rmiiiopOptionalDataIncompatible1( CompletionStatus cs, Throwable t ) {
  2017. MARSHAL exc = new MARSHAL( RMIIIOP_OPTIONAL_DATA_INCOMPATIBLE1, cs ) ;
  2018. if (t != null)
  2019. exc.initCause( t ) ;
  2020. if (logger.isLoggable( Level.WARNING )) {
  2021. Object[] parameters = null ;
  2022. doLog( Level.WARNING, "OMG.rmiiiopOptionalDataIncompatible1",
  2023. parameters, OMGSystemException.class, exc ) ;
  2024. }
  2025. return exc ;
  2026. }
  2027. public MARSHAL rmiiiopOptionalDataIncompatible1( CompletionStatus cs ) {
  2028. return rmiiiopOptionalDataIncompatible1( cs, null ) ;
  2029. }
  2030. public MARSHAL rmiiiopOptionalDataIncompatible1( Throwable t ) {
  2031. return rmiiiopOptionalDataIncompatible1( CompletionStatus.COMPLETED_NO, t ) ;
  2032. }
  2033. public MARSHAL rmiiiopOptionalDataIncompatible1( ) {
  2034. return rmiiiopOptionalDataIncompatible1( CompletionStatus.COMPLETED_NO, null ) ;
  2035. }
  2036. public static final int RMIIIOP_OPTIONAL_DATA_INCOMPATIBLE2 = OMGVMCID.value + 8 ;
  2037. public MARSHAL rmiiiopOptionalDataIncompatible2( CompletionStatus cs, Throwable t ) {
  2038. MARSHAL exc = new MARSHAL( RMIIIOP_OPTIONAL_DATA_INCOMPATIBLE2, cs ) ;
  2039. if (t != null)
  2040. exc.initCause( t ) ;
  2041. if (logger.isLoggable( Level.WARNING )) {
  2042. Object[] parameters = null ;
  2043. doLog( Level.WARNING, "OMG.rmiiiopOptionalDataIncompatible2",
  2044. parameters, OMGSystemException.class, exc ) ;
  2045. }
  2046. return exc ;
  2047. }
  2048. public MARSHAL rmiiiopOptionalDataIncompatible2( CompletionStatus cs ) {
  2049. return rmiiiopOptionalDataIncompatible2( cs, null ) ;
  2050. }
  2051. public MARSHAL rmiiiopOptionalDataIncompatible2( Throwable t ) {
  2052. return rmiiiopOptionalDataIncompatible2( CompletionStatus.COMPLETED_NO, t ) ;
  2053. }
  2054. public MARSHAL rmiiiopOptionalDataIncompatible2( ) {
  2055. return rmiiiopOptionalDataIncompatible2( CompletionStatus.COMPLETED_NO, null ) ;
  2056. }
  2057. public static final int RMIIIOP_OPTIONAL_DATA_INCOMPATIBLE3 = OMGVMCID.value + 8 ;
  2058. public MARSHAL rmiiiopOptionalDataIncompatible3( CompletionStatus cs, Throwable t ) {
  2059. MARSHAL exc = new MARSHAL( RMIIIOP_OPTIONAL_DATA_INCOMPATIBLE3, cs ) ;
  2060. if (t != null)
  2061. exc.initCause( t ) ;
  2062. if (logger.isLoggable( Level.FINE )) {
  2063. Object[] parameters = null ;
  2064. doLog( Level.FINE, "OMG.rmiiiopOptionalDataIncompatible3",
  2065. parameters, OMGSystemException.class, exc ) ;
  2066. }
  2067. return exc ;
  2068. }
  2069. public MARSHAL rmiiiopOptionalDataIncompatible3( CompletionStatus cs ) {
  2070. return rmiiiopOptionalDataIncompatible3( cs, null ) ;
  2071. }
  2072. public MARSHAL rmiiiopOptionalDataIncompatible3( Throwable t ) {
  2073. return rmiiiopOptionalDataIncompatible3( CompletionStatus.COMPLETED_NO, t ) ;
  2074. }
  2075. public MARSHAL rmiiiopOptionalDataIncompatible3( ) {
  2076. return rmiiiopOptionalDataIncompatible3( CompletionStatus.COMPLETED_NO, null ) ;
  2077. }
  2078. ///////////////////////////////////////////////////////////
  2079. // NO_IMPLEMENT
  2080. ///////////////////////////////////////////////////////////
  2081. public static final int MISSING_LOCAL_VALUE_IMPL = OMGVMCID.value + 1 ;
  2082. public NO_IMPLEMENT missingLocalValueImpl( CompletionStatus cs, Throwable t ) {
  2083. NO_IMPLEMENT exc = new NO_IMPLEMENT( MISSING_LOCAL_VALUE_IMPL, cs ) ;
  2084. if (t != null)
  2085. exc.initCause( t ) ;
  2086. if (logger.isLoggable( Level.WARNING )) {
  2087. Object[] parameters = null ;
  2088. doLog( Level.WARNING, "OMG.missingLocalValueImpl",
  2089. parameters, OMGSystemException.class, exc ) ;
  2090. }
  2091. return exc ;
  2092. }
  2093. public NO_IMPLEMENT missingLocalValueImpl( CompletionStatus cs ) {
  2094. return missingLocalValueImpl( cs, null ) ;
  2095. }
  2096. public NO_IMPLEMENT missingLocalValueImpl( Throwable t ) {
  2097. return missingLocalValueImpl( CompletionStatus.COMPLETED_NO, t ) ;
  2098. }
  2099. public NO_IMPLEMENT missingLocalValueImpl( ) {
  2100. return missingLocalValueImpl( CompletionStatus.COMPLETED_NO, null ) ;
  2101. }
  2102. public static final int INCOMPATIBLE_VALUE_IMPL = OMGVMCID.value + 2 ;
  2103. public NO_IMPLEMENT incompatibleValueImpl( CompletionStatus cs, Throwable t ) {
  2104. NO_IMPLEMENT exc = new NO_IMPLEMENT( INCOMPATIBLE_VALUE_IMPL, cs ) ;
  2105. if (t != null)
  2106. exc.initCause( t ) ;
  2107. if (logger.isLoggable( Level.WARNING )) {
  2108. Object[] parameters = null ;
  2109. doLog( Level.WARNING, "OMG.incompatibleValueImpl",
  2110. parameters, OMGSystemException.class, exc ) ;
  2111. }
  2112. return exc ;
  2113. }
  2114. public NO_IMPLEMENT incompatibleValueImpl( CompletionStatus cs ) {
  2115. return incompatibleValueImpl( cs, null ) ;
  2116. }
  2117. public NO_IMPLEMENT incompatibleValueImpl( Throwable t ) {
  2118. return incompatibleValueImpl( CompletionStatus.COMPLETED_NO, t ) ;
  2119. }
  2120. public NO_IMPLEMENT incompatibleValueImpl( ) {
  2121. return incompatibleValueImpl( CompletionStatus.COMPLETED_NO, null ) ;
  2122. }
  2123. public static final int NO_USABLE_PROFILE_2 = OMGVMCID.value + 3 ;
  2124. public NO_IMPLEMENT noUsableProfile2( CompletionStatus cs, Throwable t ) {
  2125. NO_IMPLEMENT exc = new NO_IMPLEMENT( NO_USABLE_PROFILE_2, cs ) ;
  2126. if (t != null)
  2127. exc.initCause( t ) ;
  2128. if (logger.isLoggable( Level.WARNING )) {
  2129. Object[] parameters = null ;
  2130. doLog( Level.WARNING, "OMG.noUsableProfile2",
  2131. parameters, OMGSystemException.class, exc ) ;
  2132. }
  2133. return exc ;
  2134. }
  2135. public NO_IMPLEMENT noUsableProfile2( CompletionStatus cs ) {
  2136. return noUsableProfile2( cs, null ) ;
  2137. }
  2138. public NO_IMPLEMENT noUsableProfile2( Throwable t ) {
  2139. return noUsableProfile2( CompletionStatus.COMPLETED_NO, t ) ;
  2140. }
  2141. public NO_IMPLEMENT noUsableProfile2( ) {
  2142. return noUsableProfile2( CompletionStatus.COMPLETED_NO, null ) ;
  2143. }
  2144. public static final int DII_LOCAL_OBJECT = OMGVMCID.value + 4 ;
  2145. public NO_IMPLEMENT diiLocalObject( CompletionStatus cs, Throwable t ) {
  2146. NO_IMPLEMENT exc = new NO_IMPLEMENT( DII_LOCAL_OBJECT, cs ) ;
  2147. if (t != null)
  2148. exc.initCause( t ) ;
  2149. if (logger.isLoggable( Level.WARNING )) {
  2150. Object[] parameters = null ;
  2151. doLog( Level.WARNING, "OMG.diiLocalObject",
  2152. parameters, OMGSystemException.class, exc ) ;
  2153. }
  2154. return exc ;
  2155. }
  2156. public NO_IMPLEMENT diiLocalObject( CompletionStatus cs ) {
  2157. return diiLocalObject( cs, null ) ;
  2158. }
  2159. public NO_IMPLEMENT diiLocalObject( Throwable t ) {
  2160. return diiLocalObject( CompletionStatus.COMPLETED_NO, t ) ;
  2161. }
  2162. public NO_IMPLEMENT diiLocalObject( ) {
  2163. return diiLocalObject( CompletionStatus.COMPLETED_NO, null ) ;
  2164. }
  2165. public static final int BIO_RESET = OMGVMCID.value + 5 ;
  2166. public NO_IMPLEMENT bioReset( CompletionStatus cs, Throwable t ) {
  2167. NO_IMPLEMENT exc = new NO_IMPLEMENT( BIO_RESET, cs ) ;
  2168. if (t != null)
  2169. exc.initCause( t ) ;
  2170. if (logger.isLoggable( Level.WARNING )) {
  2171. Object[] parameters = null ;
  2172. doLog( Level.WARNING, "OMG.bioReset",
  2173. parameters, OMGSystemException.class, exc ) ;
  2174. }
  2175. return exc ;
  2176. }
  2177. public NO_IMPLEMENT bioReset( CompletionStatus cs ) {
  2178. return bioReset( cs, null ) ;
  2179. }
  2180. public NO_IMPLEMENT bioReset( Throwable t ) {
  2181. return bioReset( CompletionStatus.COMPLETED_NO, t ) ;
  2182. }
  2183. public NO_IMPLEMENT bioReset( ) {
  2184. return bioReset( CompletionStatus.COMPLETED_NO, null ) ;
  2185. }
  2186. public static final int BIO_META_NOT_AVAILABLE = OMGVMCID.value + 6 ;
  2187. public NO_IMPLEMENT bioMetaNotAvailable( CompletionStatus cs, Throwable t ) {
  2188. NO_IMPLEMENT exc = new NO_IMPLEMENT( BIO_META_NOT_AVAILABLE, cs ) ;
  2189. if (t != null)
  2190. exc.initCause( t ) ;
  2191. if (logger.isLoggable( Level.WARNING )) {
  2192. Object[] parameters = null ;
  2193. doLog( Level.WARNING, "OMG.bioMetaNotAvailable",
  2194. parameters, OMGSystemException.class, exc ) ;
  2195. }
  2196. return exc ;
  2197. }
  2198. public NO_IMPLEMENT bioMetaNotAvailable( CompletionStatus cs ) {
  2199. return bioMetaNotAvailable( cs, null ) ;
  2200. }
  2201. public NO_IMPLEMENT bioMetaNotAvailable( Throwable t ) {
  2202. return bioMetaNotAvailable( CompletionStatus.COMPLETED_NO, t ) ;
  2203. }
  2204. public NO_IMPLEMENT bioMetaNotAvailable( ) {
  2205. return bioMetaNotAvailable( CompletionStatus.COMPLETED_NO, null ) ;
  2206. }
  2207. public static final int BIO_GENOMIC_NO_ITERATOR = OMGVMCID.value + 7 ;
  2208. public NO_IMPLEMENT bioGenomicNoIterator( CompletionStatus cs, Throwable t ) {
  2209. NO_IMPLEMENT exc = new NO_IMPLEMENT( BIO_GENOMIC_NO_ITERATOR, cs ) ;
  2210. if (t != null)
  2211. exc.initCause( t ) ;
  2212. if (logger.isLoggable( Level.WARNING )) {
  2213. Object[] parameters = null ;
  2214. doLog( Level.WARNING, "OMG.bioGenomicNoIterator",
  2215. parameters, OMGSystemException.class, exc ) ;
  2216. }
  2217. return exc ;
  2218. }
  2219. public NO_IMPLEMENT bioGenomicNoIterator( CompletionStatus cs ) {
  2220. return bioGenomicNoIterator( cs, null ) ;
  2221. }
  2222. public NO_IMPLEMENT bioGenomicNoIterator( Throwable t ) {
  2223. return bioGenomicNoIterator( CompletionStatus.COMPLETED_NO, t ) ;
  2224. }
  2225. public NO_IMPLEMENT bioGenomicNoIterator( ) {
  2226. return bioGenomicNoIterator( CompletionStatus.COMPLETED_NO, null ) ;
  2227. }
  2228. ///////////////////////////////////////////////////////////
  2229. // NO_RESOURCES
  2230. ///////////////////////////////////////////////////////////
  2231. public static final int PI_OPERATION_NOT_SUPPORTED1 = OMGVMCID.value + 1 ;
  2232. public NO_RESOURCES piOperationNotSupported1( CompletionStatus cs, Throwable t ) {
  2233. NO_RESOURCES exc = new NO_RESOURCES( PI_OPERATION_NOT_SUPPORTED1, cs ) ;
  2234. if (t != null)
  2235. exc.initCause( t ) ;
  2236. if (logger.isLoggable( Level.FINE )) {
  2237. Object[] parameters = null ;
  2238. doLog( Level.FINE, "OMG.piOperationNotSupported1",
  2239. parameters, OMGSystemException.class, exc ) ;
  2240. }
  2241. return exc ;
  2242. }
  2243. public NO_RESOURCES piOperationNotSupported1( CompletionStatus cs ) {
  2244. return piOperationNotSupported1( cs, null ) ;
  2245. }
  2246. public NO_RESOURCES piOperationNotSupported1( Throwable t ) {
  2247. return piOperationNotSupported1( CompletionStatus.COMPLETED_NO, t ) ;
  2248. }
  2249. public NO_RESOURCES piOperationNotSupported1( ) {
  2250. return piOperationNotSupported1( CompletionStatus.COMPLETED_NO, null ) ;
  2251. }
  2252. public static final int PI_OPERATION_NOT_SUPPORTED2 = OMGVMCID.value + 1 ;
  2253. public NO_RESOURCES piOperationNotSupported2( CompletionStatus cs, Throwable t ) {
  2254. NO_RESOURCES exc = new NO_RESOURCES( PI_OPERATION_NOT_SUPPORTED2, cs ) ;
  2255. if (t != null)
  2256. exc.initCause( t ) ;
  2257. if (logger.isLoggable( Level.FINE )) {
  2258. Object[] parameters = null ;
  2259. doLog( Level.FINE, "OMG.piOperationNotSupported2",
  2260. parameters, OMGSystemException.class, exc ) ;
  2261. }
  2262. return exc ;
  2263. }
  2264. public NO_RESOURCES piOperationNotSupported2( CompletionStatus cs ) {
  2265. return piOperationNotSupported2( cs, null ) ;
  2266. }
  2267. public NO_RESOURCES piOperationNotSupported2( Throwable t ) {
  2268. return piOperationNotSupported2( CompletionStatus.COMPLETED_NO, t ) ;
  2269. }
  2270. public NO_RESOURCES piOperationNotSupported2( ) {
  2271. return piOperationNotSupported2( CompletionStatus.COMPLETED_NO, null ) ;
  2272. }
  2273. public static final int PI_OPERATION_NOT_SUPPORTED3 = OMGVMCID.value + 1 ;
  2274. public NO_RESOURCES piOperationNotSupported3( CompletionStatus cs, Throwable t ) {
  2275. NO_RESOURCES exc = new NO_RESOURCES( PI_OPERATION_NOT_SUPPORTED3, cs ) ;
  2276. if (t != null)
  2277. exc.initCause( t ) ;
  2278. if (logger.isLoggable( Level.FINE )) {
  2279. Object[] parameters = null ;
  2280. doLog( Level.FINE, "OMG.piOperationNotSupported3",
  2281. parameters, OMGSystemException.class, exc ) ;
  2282. }
  2283. return exc ;
  2284. }
  2285. public NO_RESOURCES piOperationNotSupported3( CompletionStatus cs ) {
  2286. return piOperationNotSupported3( cs, null ) ;
  2287. }
  2288. public NO_RESOURCES piOperationNotSupported3( Throwable t ) {
  2289. return piOperationNotSupported3( CompletionStatus.COMPLETED_NO, t ) ;
  2290. }
  2291. public NO_RESOURCES piOperationNotSupported3( ) {
  2292. return piOperationNotSupported3( CompletionStatus.COMPLETED_NO, null ) ;
  2293. }
  2294. public static final int PI_OPERATION_NOT_SUPPORTED4 = OMGVMCID.value + 1 ;
  2295. public NO_RESOURCES piOperationNotSupported4( CompletionStatus cs, Throwable t ) {
  2296. NO_RESOURCES exc = new NO_RESOURCES( PI_OPERATION_NOT_SUPPORTED4, cs ) ;
  2297. if (t != null)
  2298. exc.initCause( t ) ;
  2299. if (logger.isLoggable( Level.FINE )) {
  2300. Object[] parameters = null ;
  2301. doLog( Level.FINE, "OMG.piOperationNotSupported4",
  2302. parameters, OMGSystemException.class, exc ) ;
  2303. }
  2304. return exc ;
  2305. }
  2306. public NO_RESOURCES piOperationNotSupported4( CompletionStatus cs ) {
  2307. return piOperationNotSupported4( cs, null ) ;
  2308. }
  2309. public NO_RESOURCES piOperationNotSupported4( Throwable t ) {
  2310. return piOperationNotSupported4( CompletionStatus.COMPLETED_NO, t ) ;
  2311. }
  2312. public NO_RESOURCES piOperationNotSupported4( ) {
  2313. return piOperationNotSupported4( CompletionStatus.COMPLETED_NO, null ) ;
  2314. }
  2315. public static final int PI_OPERATION_NOT_SUPPORTED5 = OMGVMCID.value + 1 ;
  2316. public NO_RESOURCES piOperationNotSupported5( CompletionStatus cs, Throwable t ) {
  2317. NO_RESOURCES exc = new NO_RESOURCES( PI_OPERATION_NOT_SUPPORTED5, cs ) ;
  2318. if (t != null)
  2319. exc.initCause( t ) ;
  2320. if (logger.isLoggable( Level.FINE )) {
  2321. Object[] parameters = null ;
  2322. doLog( Level.FINE, "OMG.piOperationNotSupported5",
  2323. parameters, OMGSystemException.class, exc ) ;
  2324. }
  2325. return exc ;
  2326. }
  2327. public NO_RESOURCES piOperationNotSupported5( CompletionStatus cs ) {
  2328. return piOperationNotSupported5( cs, null ) ;
  2329. }
  2330. public NO_RESOURCES piOperationNotSupported5( Throwable t ) {
  2331. return piOperationNotSupported5( CompletionStatus.COMPLETED_NO, t ) ;
  2332. }
  2333. public NO_RESOURCES piOperationNotSupported5( ) {
  2334. return piOperationNotSupported5( CompletionStatus.COMPLETED_NO, null ) ;
  2335. }
  2336. public static final int PI_OPERATION_NOT_SUPPORTED6 = OMGVMCID.value + 1 ;
  2337. public NO_RESOURCES piOperationNotSupported6( CompletionStatus cs, Throwable t ) {
  2338. NO_RESOURCES exc = new NO_RESOURCES( PI_OPERATION_NOT_SUPPORTED6, cs ) ;
  2339. if (t != null)
  2340. exc.initCause( t ) ;
  2341. if (logger.isLoggable( Level.FINE )) {
  2342. Object[] parameters = null ;
  2343. doLog( Level.FINE, "OMG.piOperationNotSupported6",
  2344. parameters, OMGSystemException.class, exc ) ;
  2345. }
  2346. return exc ;
  2347. }
  2348. public NO_RESOURCES piOperationNotSupported6( CompletionStatus cs ) {
  2349. return piOperationNotSupported6( cs, null ) ;
  2350. }
  2351. public NO_RESOURCES piOperationNotSupported6( Throwable t ) {
  2352. return piOperationNotSupported6( CompletionStatus.COMPLETED_NO, t ) ;
  2353. }
  2354. public NO_RESOURCES piOperationNotSupported6( ) {
  2355. return piOperationNotSupported6( CompletionStatus.COMPLETED_NO, null ) ;
  2356. }
  2357. public static final int PI_OPERATION_NOT_SUPPORTED7 = OMGVMCID.value + 1 ;
  2358. public NO_RESOURCES piOperationNotSupported7( CompletionStatus cs, Throwable t ) {
  2359. NO_RESOURCES exc = new NO_RESOURCES( PI_OPERATION_NOT_SUPPORTED7, cs ) ;
  2360. if (t != null)
  2361. exc.initCause( t ) ;
  2362. if (logger.isLoggable( Level.FINE )) {
  2363. Object[] parameters = null ;
  2364. doLog( Level.FINE, "OMG.piOperationNotSupported7",
  2365. parameters, OMGSystemException.class, exc ) ;
  2366. }
  2367. return exc ;
  2368. }
  2369. public NO_RESOURCES piOperationNotSupported7( CompletionStatus cs ) {
  2370. return piOperationNotSupported7( cs, null ) ;
  2371. }
  2372. public NO_RESOURCES piOperationNotSupported7( Throwable t ) {
  2373. return piOperationNotSupported7( CompletionStatus.COMPLETED_NO, t ) ;
  2374. }
  2375. public NO_RESOURCES piOperationNotSupported7( ) {
  2376. return piOperationNotSupported7( CompletionStatus.COMPLETED_NO, null ) ;
  2377. }
  2378. public static final int PI_OPERATION_NOT_SUPPORTED8 = OMGVMCID.value + 1 ;
  2379. public NO_RESOURCES piOperationNotSupported8( CompletionStatus cs, Throwable t ) {
  2380. NO_RESOURCES exc = new NO_RESOURCES( PI_OPERATION_NOT_SUPPORTED8, cs ) ;
  2381. if (t != null)
  2382. exc.initCause( t ) ;
  2383. if (logger.isLoggable( Level.FINE )) {
  2384. Object[] parameters = null ;
  2385. doLog( Level.FINE, "OMG.piOperationNotSupported8",
  2386. parameters, OMGSystemException.class, exc ) ;
  2387. }
  2388. return exc ;
  2389. }
  2390. public NO_RESOURCES piOperationNotSupported8( CompletionStatus cs ) {
  2391. return piOperationNotSupported8( cs, null ) ;
  2392. }
  2393. public NO_RESOURCES piOperationNotSupported8( Throwable t ) {
  2394. return piOperationNotSupported8( CompletionStatus.COMPLETED_NO, t ) ;
  2395. }
  2396. public NO_RESOURCES piOperationNotSupported8( ) {
  2397. return piOperationNotSupported8( CompletionStatus.COMPLETED_NO, null ) ;
  2398. }
  2399. public static final int NO_CONNECTION_PRIORITY = OMGVMCID.value + 2 ;
  2400. public NO_RESOURCES noConnectionPriority( CompletionStatus cs, Throwable t ) {
  2401. NO_RESOURCES exc = new NO_RESOURCES( NO_CONNECTION_PRIORITY, cs ) ;
  2402. if (t != null)
  2403. exc.initCause( t ) ;
  2404. if (logger.isLoggable( Level.WARNING )) {
  2405. Object[] parameters = null ;
  2406. doLog( Level.WARNING, "OMG.noConnectionPriority",
  2407. parameters, OMGSystemException.class, exc ) ;
  2408. }
  2409. return exc ;
  2410. }
  2411. public NO_RESOURCES noConnectionPriority( CompletionStatus cs ) {
  2412. return noConnectionPriority( cs, null ) ;
  2413. }
  2414. public NO_RESOURCES noConnectionPriority( Throwable t ) {
  2415. return noConnectionPriority( CompletionStatus.COMPLETED_NO, t ) ;
  2416. }
  2417. public NO_RESOURCES noConnectionPriority( ) {
  2418. return noConnectionPriority( CompletionStatus.COMPLETED_NO, null ) ;
  2419. }
  2420. ///////////////////////////////////////////////////////////
  2421. // TRANSACTION_ROLLEDBACK
  2422. ///////////////////////////////////////////////////////////
  2423. public static final int XA_RB = OMGVMCID.value + 1 ;
  2424. public TRANSACTION_ROLLEDBACK xaRb( CompletionStatus cs, Throwable t ) {
  2425. TRANSACTION_ROLLEDBACK exc = new TRANSACTION_ROLLEDBACK( XA_RB, cs ) ;
  2426. if (t != null)
  2427. exc.initCause( t ) ;
  2428. if (logger.isLoggable( Level.WARNING )) {
  2429. Object[] parameters = null ;
  2430. doLog( Level.WARNING, "OMG.xaRb",
  2431. parameters, OMGSystemException.class, exc ) ;
  2432. }
  2433. return exc ;
  2434. }
  2435. public TRANSACTION_ROLLEDBACK xaRb( CompletionStatus cs ) {
  2436. return xaRb( cs, null ) ;
  2437. }
  2438. public TRANSACTION_ROLLEDBACK xaRb( Throwable t ) {
  2439. return xaRb( CompletionStatus.COMPLETED_NO, t ) ;
  2440. }
  2441. public TRANSACTION_ROLLEDBACK xaRb( ) {
  2442. return xaRb( CompletionStatus.COMPLETED_NO, null ) ;
  2443. }
  2444. public static final int XA_NOTA = OMGVMCID.value + 2 ;
  2445. public TRANSACTION_ROLLEDBACK xaNota( CompletionStatus cs, Throwable t ) {
  2446. TRANSACTION_ROLLEDBACK exc = new TRANSACTION_ROLLEDBACK( XA_NOTA, cs ) ;
  2447. if (t != null)
  2448. exc.initCause( t ) ;
  2449. if (logger.isLoggable( Level.WARNING )) {
  2450. Object[] parameters = null ;
  2451. doLog( Level.WARNING, "OMG.xaNota",
  2452. parameters, OMGSystemException.class, exc ) ;
  2453. }
  2454. return exc ;
  2455. }
  2456. public TRANSACTION_ROLLEDBACK xaNota( CompletionStatus cs ) {
  2457. return xaNota( cs, null ) ;
  2458. }
  2459. public TRANSACTION_ROLLEDBACK xaNota( Throwable t ) {
  2460. return xaNota( CompletionStatus.COMPLETED_NO, t ) ;
  2461. }
  2462. public TRANSACTION_ROLLEDBACK xaNota( ) {
  2463. return xaNota( CompletionStatus.COMPLETED_NO, null ) ;
  2464. }
  2465. public static final int XA_END_TRUE_ROLLBACK_DEFERRED = OMGVMCID.value + 3 ;
  2466. public TRANSACTION_ROLLEDBACK xaEndTrueRollbackDeferred( CompletionStatus cs, Throwable t ) {
  2467. TRANSACTION_ROLLEDBACK exc = new TRANSACTION_ROLLEDBACK( XA_END_TRUE_ROLLBACK_DEFERRED, cs ) ;
  2468. if (t != null)
  2469. exc.initCause( t ) ;
  2470. if (logger.isLoggable( Level.WARNING )) {
  2471. Object[] parameters = null ;
  2472. doLog( Level.WARNING, "OMG.xaEndTrueRollbackDeferred",
  2473. parameters, OMGSystemException.class, exc ) ;
  2474. }
  2475. return exc ;
  2476. }
  2477. public TRANSACTION_ROLLEDBACK xaEndTrueRollbackDeferred( CompletionStatus cs ) {
  2478. return xaEndTrueRollbackDeferred( cs, null ) ;
  2479. }
  2480. public TRANSACTION_ROLLEDBACK xaEndTrueRollbackDeferred( Throwable t ) {
  2481. return xaEndTrueRollbackDeferred( CompletionStatus.COMPLETED_NO, t ) ;
  2482. }
  2483. public TRANSACTION_ROLLEDBACK xaEndTrueRollbackDeferred( ) {
  2484. return xaEndTrueRollbackDeferred( CompletionStatus.COMPLETED_NO, null ) ;
  2485. }
  2486. ///////////////////////////////////////////////////////////
  2487. // TRANSIENT
  2488. ///////////////////////////////////////////////////////////
  2489. public static final int POA_REQUEST_DISCARD = OMGVMCID.value + 1 ;
  2490. public TRANSIENT poaRequestDiscard( CompletionStatus cs, Throwable t ) {
  2491. TRANSIENT exc = new TRANSIENT( POA_REQUEST_DISCARD, cs ) ;
  2492. if (t != null)
  2493. exc.initCause( t ) ;
  2494. if (logger.isLoggable( Level.WARNING )) {
  2495. Object[] parameters = null ;
  2496. doLog( Level.WARNING, "OMG.poaRequestDiscard",
  2497. parameters, OMGSystemException.class, exc ) ;
  2498. }
  2499. return exc ;
  2500. }
  2501. public TRANSIENT poaRequestDiscard( CompletionStatus cs ) {
  2502. return poaRequestDiscard( cs, null ) ;
  2503. }
  2504. public TRANSIENT poaRequestDiscard( Throwable t ) {
  2505. return poaRequestDiscard( CompletionStatus.COMPLETED_NO, t ) ;
  2506. }
  2507. public TRANSIENT poaRequestDiscard( ) {
  2508. return poaRequestDiscard( CompletionStatus.COMPLETED_NO, null ) ;
  2509. }
  2510. public static final int NO_USABLE_PROFILE_3 = OMGVMCID.value + 2 ;
  2511. public TRANSIENT noUsableProfile3( CompletionStatus cs, Throwable t ) {
  2512. TRANSIENT exc = new TRANSIENT( NO_USABLE_PROFILE_3, cs ) ;
  2513. if (t != null)
  2514. exc.initCause( t ) ;
  2515. if (logger.isLoggable( Level.WARNING )) {
  2516. Object[] parameters = null ;
  2517. doLog( Level.WARNING, "OMG.noUsableProfile3",
  2518. parameters, OMGSystemException.class, exc ) ;
  2519. }
  2520. return exc ;
  2521. }
  2522. public TRANSIENT noUsableProfile3( CompletionStatus cs ) {
  2523. return noUsableProfile3( cs, null ) ;
  2524. }
  2525. public TRANSIENT noUsableProfile3( Throwable t ) {
  2526. return noUsableProfile3( CompletionStatus.COMPLETED_NO, t ) ;
  2527. }
  2528. public TRANSIENT noUsableProfile3( ) {
  2529. return noUsableProfile3( CompletionStatus.COMPLETED_NO, null ) ;
  2530. }
  2531. public static final int REQUEST_CANCELLED = OMGVMCID.value + 3 ;
  2532. public TRANSIENT requestCancelled( CompletionStatus cs, Throwable t ) {
  2533. TRANSIENT exc = new TRANSIENT( REQUEST_CANCELLED, cs ) ;
  2534. if (t != null)
  2535. exc.initCause( t ) ;
  2536. if (logger.isLoggable( Level.WARNING )) {
  2537. Object[] parameters = null ;
  2538. doLog( Level.WARNING, "OMG.requestCancelled",
  2539. parameters, OMGSystemException.class, exc ) ;
  2540. }
  2541. return exc ;
  2542. }
  2543. public TRANSIENT requestCancelled( CompletionStatus cs ) {
  2544. return requestCancelled( cs, null ) ;
  2545. }
  2546. public TRANSIENT requestCancelled( Throwable t ) {
  2547. return requestCancelled( CompletionStatus.COMPLETED_NO, t ) ;
  2548. }
  2549. public TRANSIENT requestCancelled( ) {
  2550. return requestCancelled( CompletionStatus.COMPLETED_NO, null ) ;
  2551. }
  2552. public static final int POA_DESTROYED = OMGVMCID.value + 4 ;
  2553. public TRANSIENT poaDestroyed( CompletionStatus cs, Throwable t ) {
  2554. TRANSIENT exc = new TRANSIENT( POA_DESTROYED, cs ) ;
  2555. if (t != null)
  2556. exc.initCause( t ) ;
  2557. if (logger.isLoggable( Level.WARNING )) {
  2558. Object[] parameters = null ;
  2559. doLog( Level.WARNING, "OMG.poaDestroyed",
  2560. parameters, OMGSystemException.class, exc ) ;
  2561. }
  2562. return exc ;
  2563. }
  2564. public TRANSIENT poaDestroyed( CompletionStatus cs ) {
  2565. return poaDestroyed( cs, null ) ;
  2566. }
  2567. public TRANSIENT poaDestroyed( Throwable t ) {
  2568. return poaDestroyed( CompletionStatus.COMPLETED_NO, t ) ;
  2569. }
  2570. public TRANSIENT poaDestroyed( ) {
  2571. return poaDestroyed( CompletionStatus.COMPLETED_NO, null ) ;
  2572. }
  2573. ///////////////////////////////////////////////////////////
  2574. // OBJECT_NOT_EXIST
  2575. ///////////////////////////////////////////////////////////
  2576. public static final int UNREGISTERED_VALUE_AS_OBJREF = OMGVMCID.value + 1 ;
  2577. public OBJECT_NOT_EXIST unregisteredValueAsObjref( CompletionStatus cs, Throwable t ) {
  2578. OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST( UNREGISTERED_VALUE_AS_OBJREF, cs ) ;
  2579. if (t != null)
  2580. exc.initCause( t ) ;
  2581. if (logger.isLoggable( Level.WARNING )) {
  2582. Object[] parameters = null ;
  2583. doLog( Level.WARNING, "OMG.unregisteredValueAsObjref",
  2584. parameters, OMGSystemException.class, exc ) ;
  2585. }
  2586. return exc ;
  2587. }
  2588. public OBJECT_NOT_EXIST unregisteredValueAsObjref( CompletionStatus cs ) {
  2589. return unregisteredValueAsObjref( cs, null ) ;
  2590. }
  2591. public OBJECT_NOT_EXIST unregisteredValueAsObjref( Throwable t ) {
  2592. return unregisteredValueAsObjref( CompletionStatus.COMPLETED_NO, t ) ;
  2593. }
  2594. public OBJECT_NOT_EXIST unregisteredValueAsObjref( ) {
  2595. return unregisteredValueAsObjref( CompletionStatus.COMPLETED_NO, null ) ;
  2596. }
  2597. public static final int NO_OBJECT_ADAPTOR = OMGVMCID.value + 2 ;
  2598. public OBJECT_NOT_EXIST noObjectAdaptor( CompletionStatus cs, Throwable t ) {
  2599. OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST( NO_OBJECT_ADAPTOR, cs ) ;
  2600. if (t != null)
  2601. exc.initCause( t ) ;
  2602. if (logger.isLoggable( Level.FINE )) {
  2603. Object[] parameters = null ;
  2604. doLog( Level.FINE, "OMG.noObjectAdaptor",
  2605. parameters, OMGSystemException.class, exc ) ;
  2606. }
  2607. return exc ;
  2608. }
  2609. public OBJECT_NOT_EXIST noObjectAdaptor( CompletionStatus cs ) {
  2610. return noObjectAdaptor( cs, null ) ;
  2611. }
  2612. public OBJECT_NOT_EXIST noObjectAdaptor( Throwable t ) {
  2613. return noObjectAdaptor( CompletionStatus.COMPLETED_NO, t ) ;
  2614. }
  2615. public OBJECT_NOT_EXIST noObjectAdaptor( ) {
  2616. return noObjectAdaptor( CompletionStatus.COMPLETED_NO, null ) ;
  2617. }
  2618. public static final int BIO_NOT_AVAILABLE = OMGVMCID.value + 3 ;
  2619. public OBJECT_NOT_EXIST bioNotAvailable( CompletionStatus cs, Throwable t ) {
  2620. OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST( BIO_NOT_AVAILABLE, cs ) ;
  2621. if (t != null)
  2622. exc.initCause( t ) ;
  2623. if (logger.isLoggable( Level.WARNING )) {
  2624. Object[] parameters = null ;
  2625. doLog( Level.WARNING, "OMG.bioNotAvailable",
  2626. parameters, OMGSystemException.class, exc ) ;
  2627. }
  2628. return exc ;
  2629. }
  2630. public OBJECT_NOT_EXIST bioNotAvailable( CompletionStatus cs ) {
  2631. return bioNotAvailable( cs, null ) ;
  2632. }
  2633. public OBJECT_NOT_EXIST bioNotAvailable( Throwable t ) {
  2634. return bioNotAvailable( CompletionStatus.COMPLETED_NO, t ) ;
  2635. }
  2636. public OBJECT_NOT_EXIST bioNotAvailable( ) {
  2637. return bioNotAvailable( CompletionStatus.COMPLETED_NO, null ) ;
  2638. }
  2639. public static final int OBJECT_ADAPTER_INACTIVE = OMGVMCID.value + 4 ;
  2640. public OBJECT_NOT_EXIST objectAdapterInactive( CompletionStatus cs, Throwable t ) {
  2641. OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST( OBJECT_ADAPTER_INACTIVE, cs ) ;
  2642. if (t != null)
  2643. exc.initCause( t ) ;
  2644. if (logger.isLoggable( Level.WARNING )) {
  2645. Object[] parameters = null ;
  2646. doLog( Level.WARNING, "OMG.objectAdapterInactive",
  2647. parameters, OMGSystemException.class, exc ) ;
  2648. }
  2649. return exc ;
  2650. }
  2651. public OBJECT_NOT_EXIST objectAdapterInactive( CompletionStatus cs ) {
  2652. return objectAdapterInactive( cs, null ) ;
  2653. }
  2654. public OBJECT_NOT_EXIST objectAdapterInactive( Throwable t ) {
  2655. return objectAdapterInactive( CompletionStatus.COMPLETED_NO, t ) ;
  2656. }
  2657. public OBJECT_NOT_EXIST objectAdapterInactive( ) {
  2658. return objectAdapterInactive( CompletionStatus.COMPLETED_NO, null ) ;
  2659. }
  2660. ///////////////////////////////////////////////////////////
  2661. // OBJ_ADAPTER
  2662. ///////////////////////////////////////////////////////////
  2663. public static final int ADAPTER_ACTIVATOR_EXCEPTION = OMGVMCID.value + 1 ;
  2664. public OBJ_ADAPTER adapterActivatorException( CompletionStatus cs, Throwable t, Object arg0, Object arg1) {
  2665. OBJ_ADAPTER exc = new OBJ_ADAPTER( ADAPTER_ACTIVATOR_EXCEPTION, cs ) ;
  2666. if (t != null)
  2667. exc.initCause( t ) ;
  2668. if (logger.isLoggable( Level.WARNING )) {
  2669. Object[] parameters = new Object[2] ;
  2670. parameters[0] = arg0 ;
  2671. parameters[1] = arg1 ;
  2672. doLog( Level.WARNING, "OMG.adapterActivatorException",
  2673. parameters, OMGSystemException.class, exc ) ;
  2674. }
  2675. return exc ;
  2676. }
  2677. public OBJ_ADAPTER adapterActivatorException( CompletionStatus cs, Object arg0, Object arg1) {
  2678. return adapterActivatorException( cs, null, arg0, arg1 ) ;
  2679. }
  2680. public OBJ_ADAPTER adapterActivatorException( Throwable t, Object arg0, Object arg1) {
  2681. return adapterActivatorException( CompletionStatus.COMPLETED_NO, t, arg0, arg1 ) ;
  2682. }
  2683. public OBJ_ADAPTER adapterActivatorException( Object arg0, Object arg1) {
  2684. return adapterActivatorException( CompletionStatus.COMPLETED_NO, null, arg0, arg1 ) ;
  2685. }
  2686. public static final int BAD_SERVANT_TYPE = OMGVMCID.value + 2 ;
  2687. public OBJ_ADAPTER badServantType( CompletionStatus cs, Throwable t ) {
  2688. OBJ_ADAPTER exc = new OBJ_ADAPTER( BAD_SERVANT_TYPE, cs ) ;
  2689. if (t != null)
  2690. exc.initCause( t ) ;
  2691. if (logger.isLoggable( Level.WARNING )) {
  2692. Object[] parameters = null ;
  2693. doLog( Level.WARNING, "OMG.badServantType",
  2694. parameters, OMGSystemException.class, exc ) ;
  2695. }
  2696. return exc ;
  2697. }
  2698. public OBJ_ADAPTER badServantType( CompletionStatus cs ) {
  2699. return badServantType( cs, null ) ;
  2700. }
  2701. public OBJ_ADAPTER badServantType( Throwable t ) {
  2702. return badServantType( CompletionStatus.COMPLETED_NO, t ) ;
  2703. }
  2704. public OBJ_ADAPTER badServantType( ) {
  2705. return badServantType( CompletionStatus.COMPLETED_NO, null ) ;
  2706. }
  2707. public static final int NO_DEFAULT_SERVANT = OMGVMCID.value + 3 ;
  2708. public OBJ_ADAPTER noDefaultServant( CompletionStatus cs, Throwable t ) {
  2709. OBJ_ADAPTER exc = new OBJ_ADAPTER( NO_DEFAULT_SERVANT, cs ) ;
  2710. if (t != null)
  2711. exc.initCause( t ) ;
  2712. if (logger.isLoggable( Level.WARNING )) {
  2713. Object[] parameters = null ;
  2714. doLog( Level.WARNING, "OMG.noDefaultServant",
  2715. parameters, OMGSystemException.class, exc ) ;
  2716. }
  2717. return exc ;
  2718. }
  2719. public OBJ_ADAPTER noDefaultServant( CompletionStatus cs ) {
  2720. return noDefaultServant( cs, null ) ;
  2721. }
  2722. public OBJ_ADAPTER noDefaultServant( Throwable t ) {
  2723. return noDefaultServant( CompletionStatus.COMPLETED_NO, t ) ;
  2724. }
  2725. public OBJ_ADAPTER noDefaultServant( ) {
  2726. return noDefaultServant( CompletionStatus.COMPLETED_NO, null ) ;
  2727. }
  2728. public static final int NO_SERVANT_MANAGER = OMGVMCID.value + 4 ;
  2729. public OBJ_ADAPTER noServantManager( CompletionStatus cs, Throwable t ) {
  2730. OBJ_ADAPTER exc = new OBJ_ADAPTER( NO_SERVANT_MANAGER, cs ) ;
  2731. if (t != null)
  2732. exc.initCause( t ) ;
  2733. if (logger.isLoggable( Level.WARNING )) {
  2734. Object[] parameters = null ;
  2735. doLog( Level.WARNING, "OMG.noServantManager",
  2736. parameters, OMGSystemException.class, exc ) ;
  2737. }
  2738. return exc ;
  2739. }
  2740. public OBJ_ADAPTER noServantManager( CompletionStatus cs ) {
  2741. return noServantManager( cs, null ) ;
  2742. }
  2743. public OBJ_ADAPTER noServantManager( Throwable t ) {
  2744. return noServantManager( CompletionStatus.COMPLETED_NO, t ) ;
  2745. }
  2746. public OBJ_ADAPTER noServantManager( ) {
  2747. return noServantManager( CompletionStatus.COMPLETED_NO, null ) ;
  2748. }
  2749. public static final int BAD_POLICY_INCARNATE = OMGVMCID.value + 5 ;
  2750. public OBJ_ADAPTER badPolicyIncarnate( CompletionStatus cs, Throwable t ) {
  2751. OBJ_ADAPTER exc = new OBJ_ADAPTER( BAD_POLICY_INCARNATE, cs ) ;
  2752. if (t != null)
  2753. exc.initCause( t ) ;
  2754. if (logger.isLoggable( Level.WARNING )) {
  2755. Object[] parameters = null ;
  2756. doLog( Level.WARNING, "OMG.badPolicyIncarnate",
  2757. parameters, OMGSystemException.class, exc ) ;
  2758. }
  2759. return exc ;
  2760. }
  2761. public OBJ_ADAPTER badPolicyIncarnate( CompletionStatus cs ) {
  2762. return badPolicyIncarnate( cs, null ) ;
  2763. }
  2764. public OBJ_ADAPTER badPolicyIncarnate( Throwable t ) {
  2765. return badPolicyIncarnate( CompletionStatus.COMPLETED_NO, t ) ;
  2766. }
  2767. public OBJ_ADAPTER badPolicyIncarnate( ) {
  2768. return badPolicyIncarnate( CompletionStatus.COMPLETED_NO, null ) ;
  2769. }
  2770. public static final int PI_EXC_COMP_ESTABLISHED = OMGVMCID.value + 6 ;
  2771. public OBJ_ADAPTER piExcCompEstablished( CompletionStatus cs, Throwable t ) {
  2772. OBJ_ADAPTER exc = new OBJ_ADAPTER( PI_EXC_COMP_ESTABLISHED, cs ) ;
  2773. if (t != null)
  2774. exc.initCause( t ) ;
  2775. if (logger.isLoggable( Level.WARNING )) {
  2776. Object[] parameters = null ;
  2777. doLog( Level.WARNING, "OMG.piExcCompEstablished",
  2778. parameters, OMGSystemException.class, exc ) ;
  2779. }
  2780. return exc ;
  2781. }
  2782. public OBJ_ADAPTER piExcCompEstablished( CompletionStatus cs ) {
  2783. return piExcCompEstablished( cs, null ) ;
  2784. }
  2785. public OBJ_ADAPTER piExcCompEstablished( Throwable t ) {
  2786. return piExcCompEstablished( CompletionStatus.COMPLETED_NO, t ) ;
  2787. }
  2788. public OBJ_ADAPTER piExcCompEstablished( ) {
  2789. return piExcCompEstablished( CompletionStatus.COMPLETED_NO, null ) ;
  2790. }
  2791. public static final int NULL_SERVANT_RETURNED = OMGVMCID.value + 7 ;
  2792. public OBJ_ADAPTER nullServantReturned( CompletionStatus cs, Throwable t ) {
  2793. OBJ_ADAPTER exc = new OBJ_ADAPTER( NULL_SERVANT_RETURNED, cs ) ;
  2794. if (t != null)
  2795. exc.initCause( t ) ;
  2796. if (logger.isLoggable( Level.FINE )) {
  2797. Object[] parameters = null ;
  2798. doLog( Level.FINE, "OMG.nullServantReturned",
  2799. parameters, OMGSystemException.class, exc ) ;
  2800. }
  2801. return exc ;
  2802. }
  2803. public OBJ_ADAPTER nullServantReturned( CompletionStatus cs ) {
  2804. return nullServantReturned( cs, null ) ;
  2805. }
  2806. public OBJ_ADAPTER nullServantReturned( Throwable t ) {
  2807. return nullServantReturned( CompletionStatus.COMPLETED_NO, t ) ;
  2808. }
  2809. public OBJ_ADAPTER nullServantReturned( ) {
  2810. return nullServantReturned( CompletionStatus.COMPLETED_NO, null ) ;
  2811. }
  2812. ///////////////////////////////////////////////////////////
  2813. // UNKNOWN
  2814. ///////////////////////////////////////////////////////////
  2815. public static final int UNKNOWN_USER_EXCEPTION = OMGVMCID.value + 1 ;
  2816. public UNKNOWN unknownUserException( CompletionStatus cs, Throwable t ) {
  2817. UNKNOWN exc = new UNKNOWN( UNKNOWN_USER_EXCEPTION, cs ) ;
  2818. if (t != null)
  2819. exc.initCause( t ) ;
  2820. if (logger.isLoggable( Level.FINE )) {
  2821. Object[] parameters = null ;
  2822. doLog( Level.FINE, "OMG.unknownUserException",
  2823. parameters, OMGSystemException.class, exc ) ;
  2824. }
  2825. return exc ;
  2826. }
  2827. public UNKNOWN unknownUserException( CompletionStatus cs ) {
  2828. return unknownUserException( cs, null ) ;
  2829. }
  2830. public UNKNOWN unknownUserException( Throwable t ) {
  2831. return unknownUserException( CompletionStatus.COMPLETED_NO, t ) ;
  2832. }
  2833. public UNKNOWN unknownUserException( ) {
  2834. return unknownUserException( CompletionStatus.COMPLETED_NO, null ) ;
  2835. }
  2836. public static final int UNSUPPORTED_SYSTEM_EXCEPTION = OMGVMCID.value + 2 ;
  2837. public UNKNOWN unsupportedSystemException( CompletionStatus cs, Throwable t ) {
  2838. UNKNOWN exc = new UNKNOWN( UNSUPPORTED_SYSTEM_EXCEPTION, cs ) ;
  2839. if (t != null)
  2840. exc.initCause( t ) ;
  2841. if (logger.isLoggable( Level.WARNING )) {
  2842. Object[] parameters = null ;
  2843. doLog( Level.WARNING, "OMG.unsupportedSystemException",
  2844. parameters, OMGSystemException.class, exc ) ;
  2845. }
  2846. return exc ;
  2847. }
  2848. public UNKNOWN unsupportedSystemException( CompletionStatus cs ) {
  2849. return unsupportedSystemException( cs, null ) ;
  2850. }
  2851. public UNKNOWN unsupportedSystemException( Throwable t ) {
  2852. return unsupportedSystemException( CompletionStatus.COMPLETED_NO, t ) ;
  2853. }
  2854. public UNKNOWN unsupportedSystemException( ) {
  2855. return unsupportedSystemException( CompletionStatus.COMPLETED_NO, null ) ;
  2856. }
  2857. public static final int PI_UNKNOWN_USER_EXCEPTION = OMGVMCID.value + 3 ;
  2858. public UNKNOWN piUnknownUserException( CompletionStatus cs, Throwable t ) {
  2859. UNKNOWN exc = new UNKNOWN( PI_UNKNOWN_USER_EXCEPTION, cs ) ;
  2860. if (t != null)
  2861. exc.initCause( t ) ;
  2862. if (logger.isLoggable( Level.WARNING )) {
  2863. Object[] parameters = null ;
  2864. doLog( Level.WARNING, "OMG.piUnknownUserException",
  2865. parameters, OMGSystemException.class, exc ) ;
  2866. }
  2867. return exc ;
  2868. }
  2869. public UNKNOWN piUnknownUserException( CompletionStatus cs ) {
  2870. return piUnknownUserException( cs, null ) ;
  2871. }
  2872. public UNKNOWN piUnknownUserException( Throwable t ) {
  2873. return piUnknownUserException( CompletionStatus.COMPLETED_NO, t ) ;
  2874. }
  2875. public UNKNOWN piUnknownUserException( ) {
  2876. return piUnknownUserException( CompletionStatus.COMPLETED_NO, null ) ;
  2877. }
  2878. }