1. // Log wrapper class for Sun private system exceptions in group ACTIVATION
  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/Activation.mc on Wed Sep 15 03:50:17 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.INITIALIZE ;
  16. import org.omg.CORBA.INTERNAL ;
  17. import org.omg.CORBA.OBJECT_NOT_EXIST ;
  18. public class ActivationSystemException extends LogWrapperBase {
  19. public ActivationSystemException( Logger logger )
  20. {
  21. super( logger ) ;
  22. }
  23. private static LogWrapperFactory factory = new LogWrapperFactory() {
  24. public LogWrapperBase create( Logger logger )
  25. {
  26. return new ActivationSystemException( logger ) ;
  27. }
  28. } ;
  29. public static ActivationSystemException get( ORB orb, String logDomain )
  30. {
  31. ActivationSystemException wrapper =
  32. (ActivationSystemException) orb.getLogWrapper( logDomain,
  33. "ACTIVATION", factory ) ;
  34. return wrapper ;
  35. }
  36. public static ActivationSystemException get( String logDomain )
  37. {
  38. ActivationSystemException wrapper =
  39. (ActivationSystemException) ORB.staticGetLogWrapper( logDomain,
  40. "ACTIVATION", factory ) ;
  41. return wrapper ;
  42. }
  43. ///////////////////////////////////////////////////////////
  44. // INITIALIZE
  45. ///////////////////////////////////////////////////////////
  46. public static final int CANNOT_READ_REPOSITORY_DB = SUNVMCID.value + 401 ;
  47. public INITIALIZE cannotReadRepositoryDb( CompletionStatus cs, Throwable t ) {
  48. INITIALIZE exc = new INITIALIZE( CANNOT_READ_REPOSITORY_DB, cs ) ;
  49. if (t != null)
  50. exc.initCause( t ) ;
  51. if (logger.isLoggable( Level.WARNING )) {
  52. Object[] parameters = null ;
  53. doLog( Level.WARNING, "ACTIVATION.cannotReadRepositoryDb",
  54. parameters, ActivationSystemException.class, exc ) ;
  55. }
  56. return exc ;
  57. }
  58. public INITIALIZE cannotReadRepositoryDb( CompletionStatus cs ) {
  59. return cannotReadRepositoryDb( cs, null ) ;
  60. }
  61. public INITIALIZE cannotReadRepositoryDb( Throwable t ) {
  62. return cannotReadRepositoryDb( CompletionStatus.COMPLETED_NO, t ) ;
  63. }
  64. public INITIALIZE cannotReadRepositoryDb( ) {
  65. return cannotReadRepositoryDb( CompletionStatus.COMPLETED_NO, null ) ;
  66. }
  67. public static final int CANNOT_ADD_INITIAL_NAMING = SUNVMCID.value + 402 ;
  68. public INITIALIZE cannotAddInitialNaming( CompletionStatus cs, Throwable t ) {
  69. INITIALIZE exc = new INITIALIZE( CANNOT_ADD_INITIAL_NAMING, cs ) ;
  70. if (t != null)
  71. exc.initCause( t ) ;
  72. if (logger.isLoggable( Level.WARNING )) {
  73. Object[] parameters = null ;
  74. doLog( Level.WARNING, "ACTIVATION.cannotAddInitialNaming",
  75. parameters, ActivationSystemException.class, exc ) ;
  76. }
  77. return exc ;
  78. }
  79. public INITIALIZE cannotAddInitialNaming( CompletionStatus cs ) {
  80. return cannotAddInitialNaming( cs, null ) ;
  81. }
  82. public INITIALIZE cannotAddInitialNaming( Throwable t ) {
  83. return cannotAddInitialNaming( CompletionStatus.COMPLETED_NO, t ) ;
  84. }
  85. public INITIALIZE cannotAddInitialNaming( ) {
  86. return cannotAddInitialNaming( CompletionStatus.COMPLETED_NO, null ) ;
  87. }
  88. ///////////////////////////////////////////////////////////
  89. // INTERNAL
  90. ///////////////////////////////////////////////////////////
  91. public static final int CANNOT_WRITE_REPOSITORY_DB = SUNVMCID.value + 401 ;
  92. public INTERNAL cannotWriteRepositoryDb( CompletionStatus cs, Throwable t ) {
  93. INTERNAL exc = new INTERNAL( CANNOT_WRITE_REPOSITORY_DB, cs ) ;
  94. if (t != null)
  95. exc.initCause( t ) ;
  96. if (logger.isLoggable( Level.WARNING )) {
  97. Object[] parameters = null ;
  98. doLog( Level.WARNING, "ACTIVATION.cannotWriteRepositoryDb",
  99. parameters, ActivationSystemException.class, exc ) ;
  100. }
  101. return exc ;
  102. }
  103. public INTERNAL cannotWriteRepositoryDb( CompletionStatus cs ) {
  104. return cannotWriteRepositoryDb( cs, null ) ;
  105. }
  106. public INTERNAL cannotWriteRepositoryDb( Throwable t ) {
  107. return cannotWriteRepositoryDb( CompletionStatus.COMPLETED_NO, t ) ;
  108. }
  109. public INTERNAL cannotWriteRepositoryDb( ) {
  110. return cannotWriteRepositoryDb( CompletionStatus.COMPLETED_NO, null ) ;
  111. }
  112. public static final int SERVER_NOT_EXPECTED_TO_REGISTER = SUNVMCID.value + 403 ;
  113. public INTERNAL serverNotExpectedToRegister( CompletionStatus cs, Throwable t ) {
  114. INTERNAL exc = new INTERNAL( SERVER_NOT_EXPECTED_TO_REGISTER, cs ) ;
  115. if (t != null)
  116. exc.initCause( t ) ;
  117. if (logger.isLoggable( Level.WARNING )) {
  118. Object[] parameters = null ;
  119. doLog( Level.WARNING, "ACTIVATION.serverNotExpectedToRegister",
  120. parameters, ActivationSystemException.class, exc ) ;
  121. }
  122. return exc ;
  123. }
  124. public INTERNAL serverNotExpectedToRegister( CompletionStatus cs ) {
  125. return serverNotExpectedToRegister( cs, null ) ;
  126. }
  127. public INTERNAL serverNotExpectedToRegister( Throwable t ) {
  128. return serverNotExpectedToRegister( CompletionStatus.COMPLETED_NO, t ) ;
  129. }
  130. public INTERNAL serverNotExpectedToRegister( ) {
  131. return serverNotExpectedToRegister( CompletionStatus.COMPLETED_NO, null ) ;
  132. }
  133. public static final int UNABLE_TO_START_PROCESS = SUNVMCID.value + 404 ;
  134. public INTERNAL unableToStartProcess( CompletionStatus cs, Throwable t ) {
  135. INTERNAL exc = new INTERNAL( UNABLE_TO_START_PROCESS, cs ) ;
  136. if (t != null)
  137. exc.initCause( t ) ;
  138. if (logger.isLoggable( Level.WARNING )) {
  139. Object[] parameters = null ;
  140. doLog( Level.WARNING, "ACTIVATION.unableToStartProcess",
  141. parameters, ActivationSystemException.class, exc ) ;
  142. }
  143. return exc ;
  144. }
  145. public INTERNAL unableToStartProcess( CompletionStatus cs ) {
  146. return unableToStartProcess( cs, null ) ;
  147. }
  148. public INTERNAL unableToStartProcess( Throwable t ) {
  149. return unableToStartProcess( CompletionStatus.COMPLETED_NO, t ) ;
  150. }
  151. public INTERNAL unableToStartProcess( ) {
  152. return unableToStartProcess( CompletionStatus.COMPLETED_NO, null ) ;
  153. }
  154. public static final int SERVER_NOT_RUNNING = SUNVMCID.value + 406 ;
  155. public INTERNAL serverNotRunning( CompletionStatus cs, Throwable t ) {
  156. INTERNAL exc = new INTERNAL( SERVER_NOT_RUNNING, cs ) ;
  157. if (t != null)
  158. exc.initCause( t ) ;
  159. if (logger.isLoggable( Level.WARNING )) {
  160. Object[] parameters = null ;
  161. doLog( Level.WARNING, "ACTIVATION.serverNotRunning",
  162. parameters, ActivationSystemException.class, exc ) ;
  163. }
  164. return exc ;
  165. }
  166. public INTERNAL serverNotRunning( CompletionStatus cs ) {
  167. return serverNotRunning( cs, null ) ;
  168. }
  169. public INTERNAL serverNotRunning( Throwable t ) {
  170. return serverNotRunning( CompletionStatus.COMPLETED_NO, t ) ;
  171. }
  172. public INTERNAL serverNotRunning( ) {
  173. return serverNotRunning( CompletionStatus.COMPLETED_NO, null ) ;
  174. }
  175. ///////////////////////////////////////////////////////////
  176. // OBJECT_NOT_EXIST
  177. ///////////////////////////////////////////////////////////
  178. public static final int ERROR_IN_BAD_SERVER_ID_HANDLER = SUNVMCID.value + 401 ;
  179. public OBJECT_NOT_EXIST errorInBadServerIdHandler( CompletionStatus cs, Throwable t ) {
  180. OBJECT_NOT_EXIST exc = new OBJECT_NOT_EXIST( ERROR_IN_BAD_SERVER_ID_HANDLER, cs ) ;
  181. if (t != null)
  182. exc.initCause( t ) ;
  183. if (logger.isLoggable( Level.WARNING )) {
  184. Object[] parameters = null ;
  185. doLog( Level.WARNING, "ACTIVATION.errorInBadServerIdHandler",
  186. parameters, ActivationSystemException.class, exc ) ;
  187. }
  188. return exc ;
  189. }
  190. public OBJECT_NOT_EXIST errorInBadServerIdHandler( CompletionStatus cs ) {
  191. return errorInBadServerIdHandler( cs, null ) ;
  192. }
  193. public OBJECT_NOT_EXIST errorInBadServerIdHandler( Throwable t ) {
  194. return errorInBadServerIdHandler( CompletionStatus.COMPLETED_NO, t ) ;
  195. }
  196. public OBJECT_NOT_EXIST errorInBadServerIdHandler( ) {
  197. return errorInBadServerIdHandler( CompletionStatus.COMPLETED_NO, null ) ;
  198. }
  199. }