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