1. // Log wrapper class for Sun private system exceptions in group IOR
  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/IOR.mc on Wed Sep 15 03:50:19 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.INTERNAL ;
  16. import org.omg.CORBA.BAD_OPERATION ;
  17. import org.omg.CORBA.BAD_PARAM ;
  18. import org.omg.CORBA.INV_OBJREF ;
  19. public class IORSystemException extends LogWrapperBase {
  20. public IORSystemException( Logger logger )
  21. {
  22. super( logger ) ;
  23. }
  24. private static LogWrapperFactory factory = new LogWrapperFactory() {
  25. public LogWrapperBase create( Logger logger )
  26. {
  27. return new IORSystemException( logger ) ;
  28. }
  29. } ;
  30. public static IORSystemException get( ORB orb, String logDomain )
  31. {
  32. IORSystemException wrapper =
  33. (IORSystemException) orb.getLogWrapper( logDomain,
  34. "IOR", factory ) ;
  35. return wrapper ;
  36. }
  37. public static IORSystemException get( String logDomain )
  38. {
  39. IORSystemException wrapper =
  40. (IORSystemException) ORB.staticGetLogWrapper( logDomain,
  41. "IOR", factory ) ;
  42. return wrapper ;
  43. }
  44. ///////////////////////////////////////////////////////////
  45. // INTERNAL
  46. ///////////////////////////////////////////////////////////
  47. public static final int ORT_NOT_INITIALIZED = SUNVMCID.value + 1201 ;
  48. public INTERNAL ortNotInitialized( CompletionStatus cs, Throwable t ) {
  49. INTERNAL exc = new INTERNAL( ORT_NOT_INITIALIZED, cs ) ;
  50. if (t != null)
  51. exc.initCause( t ) ;
  52. if (logger.isLoggable( Level.WARNING )) {
  53. Object[] parameters = null ;
  54. doLog( Level.WARNING, "IOR.ortNotInitialized",
  55. parameters, IORSystemException.class, exc ) ;
  56. }
  57. return exc ;
  58. }
  59. public INTERNAL ortNotInitialized( CompletionStatus cs ) {
  60. return ortNotInitialized( cs, null ) ;
  61. }
  62. public INTERNAL ortNotInitialized( Throwable t ) {
  63. return ortNotInitialized( CompletionStatus.COMPLETED_NO, t ) ;
  64. }
  65. public INTERNAL ortNotInitialized( ) {
  66. return ortNotInitialized( CompletionStatus.COMPLETED_NO, null ) ;
  67. }
  68. public static final int NULL_POA = SUNVMCID.value + 1202 ;
  69. public INTERNAL nullPoa( CompletionStatus cs, Throwable t ) {
  70. INTERNAL exc = new INTERNAL( NULL_POA, cs ) ;
  71. if (t != null)
  72. exc.initCause( t ) ;
  73. if (logger.isLoggable( Level.WARNING )) {
  74. Object[] parameters = null ;
  75. doLog( Level.WARNING, "IOR.nullPoa",
  76. parameters, IORSystemException.class, exc ) ;
  77. }
  78. return exc ;
  79. }
  80. public INTERNAL nullPoa( CompletionStatus cs ) {
  81. return nullPoa( cs, null ) ;
  82. }
  83. public INTERNAL nullPoa( Throwable t ) {
  84. return nullPoa( CompletionStatus.COMPLETED_NO, t ) ;
  85. }
  86. public INTERNAL nullPoa( ) {
  87. return nullPoa( CompletionStatus.COMPLETED_NO, null ) ;
  88. }
  89. public static final int BAD_MAGIC = SUNVMCID.value + 1203 ;
  90. public INTERNAL badMagic( CompletionStatus cs, Throwable t, Object arg0) {
  91. INTERNAL exc = new INTERNAL( BAD_MAGIC, cs ) ;
  92. if (t != null)
  93. exc.initCause( t ) ;
  94. if (logger.isLoggable( Level.WARNING )) {
  95. Object[] parameters = new Object[1] ;
  96. parameters[0] = arg0 ;
  97. doLog( Level.WARNING, "IOR.badMagic",
  98. parameters, IORSystemException.class, exc ) ;
  99. }
  100. return exc ;
  101. }
  102. public INTERNAL badMagic( CompletionStatus cs, Object arg0) {
  103. return badMagic( cs, null, arg0 ) ;
  104. }
  105. public INTERNAL badMagic( Throwable t, Object arg0) {
  106. return badMagic( CompletionStatus.COMPLETED_NO, t, arg0 ) ;
  107. }
  108. public INTERNAL badMagic( Object arg0) {
  109. return badMagic( CompletionStatus.COMPLETED_NO, null, arg0 ) ;
  110. }
  111. public static final int STRINGIFY_WRITE_ERROR = SUNVMCID.value + 1204 ;
  112. public INTERNAL stringifyWriteError( CompletionStatus cs, Throwable t ) {
  113. INTERNAL exc = new INTERNAL( STRINGIFY_WRITE_ERROR, cs ) ;
  114. if (t != null)
  115. exc.initCause( t ) ;
  116. if (logger.isLoggable( Level.WARNING )) {
  117. Object[] parameters = null ;
  118. doLog( Level.WARNING, "IOR.stringifyWriteError",
  119. parameters, IORSystemException.class, exc ) ;
  120. }
  121. return exc ;
  122. }
  123. public INTERNAL stringifyWriteError( CompletionStatus cs ) {
  124. return stringifyWriteError( cs, null ) ;
  125. }
  126. public INTERNAL stringifyWriteError( Throwable t ) {
  127. return stringifyWriteError( CompletionStatus.COMPLETED_NO, t ) ;
  128. }
  129. public INTERNAL stringifyWriteError( ) {
  130. return stringifyWriteError( CompletionStatus.COMPLETED_NO, null ) ;
  131. }
  132. public static final int TAGGED_PROFILE_TEMPLATE_FACTORY_NOT_FOUND = SUNVMCID.value + 1205 ;
  133. public INTERNAL taggedProfileTemplateFactoryNotFound( CompletionStatus cs, Throwable t, Object arg0) {
  134. INTERNAL exc = new INTERNAL( TAGGED_PROFILE_TEMPLATE_FACTORY_NOT_FOUND, cs ) ;
  135. if (t != null)
  136. exc.initCause( t ) ;
  137. if (logger.isLoggable( Level.WARNING )) {
  138. Object[] parameters = new Object[1] ;
  139. parameters[0] = arg0 ;
  140. doLog( Level.WARNING, "IOR.taggedProfileTemplateFactoryNotFound",
  141. parameters, IORSystemException.class, exc ) ;
  142. }
  143. return exc ;
  144. }
  145. public INTERNAL taggedProfileTemplateFactoryNotFound( CompletionStatus cs, Object arg0) {
  146. return taggedProfileTemplateFactoryNotFound( cs, null, arg0 ) ;
  147. }
  148. public INTERNAL taggedProfileTemplateFactoryNotFound( Throwable t, Object arg0) {
  149. return taggedProfileTemplateFactoryNotFound( CompletionStatus.COMPLETED_NO, t, arg0 ) ;
  150. }
  151. public INTERNAL taggedProfileTemplateFactoryNotFound( Object arg0) {
  152. return taggedProfileTemplateFactoryNotFound( CompletionStatus.COMPLETED_NO, null, arg0 ) ;
  153. }
  154. public static final int INVALID_JDK1_3_1_PATCH_LEVEL = SUNVMCID.value + 1206 ;
  155. public INTERNAL invalidJdk131PatchLevel( CompletionStatus cs, Throwable t, Object arg0) {
  156. INTERNAL exc = new INTERNAL( INVALID_JDK1_3_1_PATCH_LEVEL, cs ) ;
  157. if (t != null)
  158. exc.initCause( t ) ;
  159. if (logger.isLoggable( Level.WARNING )) {
  160. Object[] parameters = new Object[1] ;
  161. parameters[0] = arg0 ;
  162. doLog( Level.WARNING, "IOR.invalidJdk131PatchLevel",
  163. parameters, IORSystemException.class, exc ) ;
  164. }
  165. return exc ;
  166. }
  167. public INTERNAL invalidJdk131PatchLevel( CompletionStatus cs, Object arg0) {
  168. return invalidJdk131PatchLevel( cs, null, arg0 ) ;
  169. }
  170. public INTERNAL invalidJdk131PatchLevel( Throwable t, Object arg0) {
  171. return invalidJdk131PatchLevel( CompletionStatus.COMPLETED_NO, t, arg0 ) ;
  172. }
  173. public INTERNAL invalidJdk131PatchLevel( Object arg0) {
  174. return invalidJdk131PatchLevel( CompletionStatus.COMPLETED_NO, null, arg0 ) ;
  175. }
  176. public static final int GET_LOCAL_SERVANT_FAILURE = SUNVMCID.value + 1207 ;
  177. public INTERNAL getLocalServantFailure( CompletionStatus cs, Throwable t, Object arg0) {
  178. INTERNAL exc = new INTERNAL( GET_LOCAL_SERVANT_FAILURE, cs ) ;
  179. if (t != null)
  180. exc.initCause( t ) ;
  181. if (logger.isLoggable( Level.FINE )) {
  182. Object[] parameters = new Object[1] ;
  183. parameters[0] = arg0 ;
  184. doLog( Level.FINE, "IOR.getLocalServantFailure",
  185. parameters, IORSystemException.class, exc ) ;
  186. }
  187. return exc ;
  188. }
  189. public INTERNAL getLocalServantFailure( CompletionStatus cs, Object arg0) {
  190. return getLocalServantFailure( cs, null, arg0 ) ;
  191. }
  192. public INTERNAL getLocalServantFailure( Throwable t, Object arg0) {
  193. return getLocalServantFailure( CompletionStatus.COMPLETED_NO, t, arg0 ) ;
  194. }
  195. public INTERNAL getLocalServantFailure( Object arg0) {
  196. return getLocalServantFailure( CompletionStatus.COMPLETED_NO, null, arg0 ) ;
  197. }
  198. ///////////////////////////////////////////////////////////
  199. // BAD_OPERATION
  200. ///////////////////////////////////////////////////////////
  201. public static final int ADAPTER_ID_NOT_AVAILABLE = SUNVMCID.value + 1201 ;
  202. public BAD_OPERATION adapterIdNotAvailable( CompletionStatus cs, Throwable t ) {
  203. BAD_OPERATION exc = new BAD_OPERATION( ADAPTER_ID_NOT_AVAILABLE, cs ) ;
  204. if (t != null)
  205. exc.initCause( t ) ;
  206. if (logger.isLoggable( Level.WARNING )) {
  207. Object[] parameters = null ;
  208. doLog( Level.WARNING, "IOR.adapterIdNotAvailable",
  209. parameters, IORSystemException.class, exc ) ;
  210. }
  211. return exc ;
  212. }
  213. public BAD_OPERATION adapterIdNotAvailable( CompletionStatus cs ) {
  214. return adapterIdNotAvailable( cs, null ) ;
  215. }
  216. public BAD_OPERATION adapterIdNotAvailable( Throwable t ) {
  217. return adapterIdNotAvailable( CompletionStatus.COMPLETED_NO, t ) ;
  218. }
  219. public BAD_OPERATION adapterIdNotAvailable( ) {
  220. return adapterIdNotAvailable( CompletionStatus.COMPLETED_NO, null ) ;
  221. }
  222. public static final int SERVER_ID_NOT_AVAILABLE = SUNVMCID.value + 1202 ;
  223. public BAD_OPERATION serverIdNotAvailable( CompletionStatus cs, Throwable t ) {
  224. BAD_OPERATION exc = new BAD_OPERATION( SERVER_ID_NOT_AVAILABLE, cs ) ;
  225. if (t != null)
  226. exc.initCause( t ) ;
  227. if (logger.isLoggable( Level.WARNING )) {
  228. Object[] parameters = null ;
  229. doLog( Level.WARNING, "IOR.serverIdNotAvailable",
  230. parameters, IORSystemException.class, exc ) ;
  231. }
  232. return exc ;
  233. }
  234. public BAD_OPERATION serverIdNotAvailable( CompletionStatus cs ) {
  235. return serverIdNotAvailable( cs, null ) ;
  236. }
  237. public BAD_OPERATION serverIdNotAvailable( Throwable t ) {
  238. return serverIdNotAvailable( CompletionStatus.COMPLETED_NO, t ) ;
  239. }
  240. public BAD_OPERATION serverIdNotAvailable( ) {
  241. return serverIdNotAvailable( CompletionStatus.COMPLETED_NO, null ) ;
  242. }
  243. public static final int ORB_ID_NOT_AVAILABLE = SUNVMCID.value + 1203 ;
  244. public BAD_OPERATION orbIdNotAvailable( CompletionStatus cs, Throwable t ) {
  245. BAD_OPERATION exc = new BAD_OPERATION( ORB_ID_NOT_AVAILABLE, cs ) ;
  246. if (t != null)
  247. exc.initCause( t ) ;
  248. if (logger.isLoggable( Level.WARNING )) {
  249. Object[] parameters = null ;
  250. doLog( Level.WARNING, "IOR.orbIdNotAvailable",
  251. parameters, IORSystemException.class, exc ) ;
  252. }
  253. return exc ;
  254. }
  255. public BAD_OPERATION orbIdNotAvailable( CompletionStatus cs ) {
  256. return orbIdNotAvailable( cs, null ) ;
  257. }
  258. public BAD_OPERATION orbIdNotAvailable( Throwable t ) {
  259. return orbIdNotAvailable( CompletionStatus.COMPLETED_NO, t ) ;
  260. }
  261. public BAD_OPERATION orbIdNotAvailable( ) {
  262. return orbIdNotAvailable( CompletionStatus.COMPLETED_NO, null ) ;
  263. }
  264. public static final int OBJECT_ADAPTER_ID_NOT_AVAILABLE = SUNVMCID.value + 1204 ;
  265. public BAD_OPERATION objectAdapterIdNotAvailable( CompletionStatus cs, Throwable t ) {
  266. BAD_OPERATION exc = new BAD_OPERATION( OBJECT_ADAPTER_ID_NOT_AVAILABLE, cs ) ;
  267. if (t != null)
  268. exc.initCause( t ) ;
  269. if (logger.isLoggable( Level.WARNING )) {
  270. Object[] parameters = null ;
  271. doLog( Level.WARNING, "IOR.objectAdapterIdNotAvailable",
  272. parameters, IORSystemException.class, exc ) ;
  273. }
  274. return exc ;
  275. }
  276. public BAD_OPERATION objectAdapterIdNotAvailable( CompletionStatus cs ) {
  277. return objectAdapterIdNotAvailable( cs, null ) ;
  278. }
  279. public BAD_OPERATION objectAdapterIdNotAvailable( Throwable t ) {
  280. return objectAdapterIdNotAvailable( CompletionStatus.COMPLETED_NO, t ) ;
  281. }
  282. public BAD_OPERATION objectAdapterIdNotAvailable( ) {
  283. return objectAdapterIdNotAvailable( CompletionStatus.COMPLETED_NO, null ) ;
  284. }
  285. ///////////////////////////////////////////////////////////
  286. // BAD_PARAM
  287. ///////////////////////////////////////////////////////////
  288. public static final int BAD_OID_IN_IOR_TEMPLATE_LIST = SUNVMCID.value + 1201 ;
  289. public BAD_PARAM badOidInIorTemplateList( CompletionStatus cs, Throwable t ) {
  290. BAD_PARAM exc = new BAD_PARAM( BAD_OID_IN_IOR_TEMPLATE_LIST, cs ) ;
  291. if (t != null)
  292. exc.initCause( t ) ;
  293. if (logger.isLoggable( Level.WARNING )) {
  294. Object[] parameters = null ;
  295. doLog( Level.WARNING, "IOR.badOidInIorTemplateList",
  296. parameters, IORSystemException.class, exc ) ;
  297. }
  298. return exc ;
  299. }
  300. public BAD_PARAM badOidInIorTemplateList( CompletionStatus cs ) {
  301. return badOidInIorTemplateList( cs, null ) ;
  302. }
  303. public BAD_PARAM badOidInIorTemplateList( Throwable t ) {
  304. return badOidInIorTemplateList( CompletionStatus.COMPLETED_NO, t ) ;
  305. }
  306. public BAD_PARAM badOidInIorTemplateList( ) {
  307. return badOidInIorTemplateList( CompletionStatus.COMPLETED_NO, null ) ;
  308. }
  309. public static final int INVALID_TAGGED_PROFILE = SUNVMCID.value + 1202 ;
  310. public BAD_PARAM invalidTaggedProfile( CompletionStatus cs, Throwable t ) {
  311. BAD_PARAM exc = new BAD_PARAM( INVALID_TAGGED_PROFILE, cs ) ;
  312. if (t != null)
  313. exc.initCause( t ) ;
  314. if (logger.isLoggable( Level.WARNING )) {
  315. Object[] parameters = null ;
  316. doLog( Level.WARNING, "IOR.invalidTaggedProfile",
  317. parameters, IORSystemException.class, exc ) ;
  318. }
  319. return exc ;
  320. }
  321. public BAD_PARAM invalidTaggedProfile( CompletionStatus cs ) {
  322. return invalidTaggedProfile( cs, null ) ;
  323. }
  324. public BAD_PARAM invalidTaggedProfile( Throwable t ) {
  325. return invalidTaggedProfile( CompletionStatus.COMPLETED_NO, t ) ;
  326. }
  327. public BAD_PARAM invalidTaggedProfile( ) {
  328. return invalidTaggedProfile( CompletionStatus.COMPLETED_NO, null ) ;
  329. }
  330. public static final int BAD_IIOP_ADDRESS_PORT = SUNVMCID.value + 1203 ;
  331. public BAD_PARAM badIiopAddressPort( CompletionStatus cs, Throwable t, Object arg0) {
  332. BAD_PARAM exc = new BAD_PARAM( BAD_IIOP_ADDRESS_PORT, cs ) ;
  333. if (t != null)
  334. exc.initCause( t ) ;
  335. if (logger.isLoggable( Level.WARNING )) {
  336. Object[] parameters = new Object[1] ;
  337. parameters[0] = arg0 ;
  338. doLog( Level.WARNING, "IOR.badIiopAddressPort",
  339. parameters, IORSystemException.class, exc ) ;
  340. }
  341. return exc ;
  342. }
  343. public BAD_PARAM badIiopAddressPort( CompletionStatus cs, Object arg0) {
  344. return badIiopAddressPort( cs, null, arg0 ) ;
  345. }
  346. public BAD_PARAM badIiopAddressPort( Throwable t, Object arg0) {
  347. return badIiopAddressPort( CompletionStatus.COMPLETED_NO, t, arg0 ) ;
  348. }
  349. public BAD_PARAM badIiopAddressPort( Object arg0) {
  350. return badIiopAddressPort( CompletionStatus.COMPLETED_NO, null, arg0 ) ;
  351. }
  352. ///////////////////////////////////////////////////////////
  353. // INV_OBJREF
  354. ///////////////////////////////////////////////////////////
  355. public static final int IOR_MUST_HAVE_IIOP_PROFILE = SUNVMCID.value + 1201 ;
  356. public INV_OBJREF iorMustHaveIiopProfile( CompletionStatus cs, Throwable t ) {
  357. INV_OBJREF exc = new INV_OBJREF( IOR_MUST_HAVE_IIOP_PROFILE, cs ) ;
  358. if (t != null)
  359. exc.initCause( t ) ;
  360. if (logger.isLoggable( Level.WARNING )) {
  361. Object[] parameters = null ;
  362. doLog( Level.WARNING, "IOR.iorMustHaveIiopProfile",
  363. parameters, IORSystemException.class, exc ) ;
  364. }
  365. return exc ;
  366. }
  367. public INV_OBJREF iorMustHaveIiopProfile( CompletionStatus cs ) {
  368. return iorMustHaveIiopProfile( cs, null ) ;
  369. }
  370. public INV_OBJREF iorMustHaveIiopProfile( Throwable t ) {
  371. return iorMustHaveIiopProfile( CompletionStatus.COMPLETED_NO, t ) ;
  372. }
  373. public INV_OBJREF iorMustHaveIiopProfile( ) {
  374. return iorMustHaveIiopProfile( CompletionStatus.COMPLETED_NO, null ) ;
  375. }
  376. }