1. /*
  2. * @(#)MinorCodes.java 1.18 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.corba.se.internal.Interceptors;
  8. import com.sun.corba.se.internal.orbutil.ORBConstants;
  9. import org.omg.CORBA.OMGVMCID;
  10. /**
  11. * Minor codes for Portable Interceptors. Each minor code is based either
  12. * off ORGVMCID or ORBConstants.PORTABLE_INTERCEPTORS_BASE.
  13. * <p>
  14. * For Sun-specific ids, see exception description in code for a description
  15. * of the minor code meaning.
  16. */
  17. public final class MinorCodes {
  18. // BAD_CONTEXT exception minor codes
  19. // BAD_INV_ORDER exception minor codes
  20. public static final int
  21. INVALID_PI_CALL = OMGVMCID.value + 14;
  22. public static final int
  23. SERVICE_CONTEXT_ADD_FAILED = OMGVMCID.value + 15;
  24. public static final int
  25. POLICY_FACTORY_REG_FAILED = OMGVMCID.value + 16;
  26. public static final int
  27. RIR_INVALID_PRE_INIT = ORBConstants.PORTABLE_INTERCEPTORS_BASE + 1;
  28. // BAD_OPERATION exception minor codes
  29. // BAD_PARAM exception minor codes
  30. public static final int
  31. INVALID_SERVICE_CONTEXT_ID = OMGVMCID.value + 26;
  32. public static final int
  33. RIR_WITH_NULL_OBJECT = OMGVMCID.value + 27;
  34. public static final int
  35. INVALID_COMPONENT_ID = OMGVMCID.value + 28;
  36. public static final int
  37. INVALID_PROFILE_ID = OMGVMCID.value + 29;
  38. // BAD_TYPECODE exception minor codes
  39. // BOUNDS exception minor codes
  40. // COMM_FAILURE exception minor codes
  41. public static final int
  42. IOEXCEPTION_DURING_CANCEL_REQUEST =
  43. ORBConstants.PORTABLE_INTERCEPTORS_BASE + 1;
  44. // DATA_CONVERSION exception minor codes
  45. // IMP_LIMIT exception minor codes
  46. // INTF_REPOS exception minor codes
  47. // INTERNAL exception minor codes
  48. public static final int
  49. EXCEPTION_WAS_NULL = ORBConstants.PORTABLE_INTERCEPTORS_BASE + 1;
  50. public static final int
  51. OBJECT_HAS_NO_DELEGATE = ORBConstants.PORTABLE_INTERCEPTORS_BASE + 2;
  52. public static final int
  53. DELEGATE_NOT_CLIENTSUB = ORBConstants.PORTABLE_INTERCEPTORS_BASE + 3;
  54. public static final int
  55. OBJECT_NOT_OBJECTIMPL = ORBConstants.PORTABLE_INTERCEPTORS_BASE + 4;
  56. public static final int
  57. EXCEPTION_INVALID = ORBConstants.PORTABLE_INTERCEPTORS_BASE + 5;
  58. public static final int
  59. REPLY_STATUS_NOTINIT = ORBConstants.PORTABLE_INTERCEPTORS_BASE + 6;
  60. public static final int
  61. EXCEPTION_IN_ARGUMENTS = ORBConstants.PORTABLE_INTERCEPTORS_BASE + 7;
  62. public static final int
  63. EXCEPTION_IN_EXCEPTIONS = ORBConstants.PORTABLE_INTERCEPTORS_BASE + 8;
  64. public static final int
  65. EXCEPTION_IN_CONTEXTS = ORBConstants.PORTABLE_INTERCEPTORS_BASE + 9;
  66. public static final int
  67. EXCEPTION_WAS_NULL_2 = ORBConstants.PORTABLE_INTERCEPTORS_BASE + 10;
  68. public static final int
  69. SERVANT_INVALID = ORBConstants.PORTABLE_INTERCEPTORS_BASE + 11;
  70. public static final int
  71. CANT_POP_ONLY_PICURRENT = ORBConstants.PORTABLE_INTERCEPTORS_BASE + 12;
  72. public static final int
  73. CANT_POP_ONLY_CURRENT_2 = ORBConstants.PORTABLE_INTERCEPTORS_BASE + 13;
  74. public static final int
  75. PI_DSI_RESULT_IS_NULL = ORBConstants.PORTABLE_INTERCEPTORS_BASE + 14;
  76. public static final int
  77. PI_DII_RESULT_IS_NULL = ORBConstants.PORTABLE_INTERCEPTORS_BASE + 15;
  78. public static final int
  79. EXCEPTION_UNAVAILABLE = ORBConstants.PORTABLE_INTERCEPTORS_BASE + 16;
  80. public static final int
  81. CLIENT_INFO_STACK_NULL = ORBConstants.PORTABLE_INTERCEPTORS_BASE + 17;
  82. public static final int
  83. SERVER_INFO_STACK_NULL = ORBConstants.PORTABLE_INTERCEPTORS_BASE + 18;
  84. public static final int
  85. MARK_AND_RESET_FAILED = ORBConstants.PORTABLE_INTERCEPTORS_BASE + 19;
  86. // INV_FLAG exception minor codes
  87. // INV_IDENT exception minor codes
  88. // INV_OBJREF exception minor codes
  89. // INV_POLICY exception minor codes
  90. public static final int
  91. POLICY_UNKNOWN = OMGVMCID.value + 2;
  92. // MARSHAL exception minor codes
  93. // NO_MEMORY exception minor codes
  94. // FREE_MEM exception minor codes
  95. // NO_IMPLEMENT exception minor codes
  96. public static final int
  97. PI_ORB_NOT_POLICY_BASED = ORBConstants.PORTABLE_INTERCEPTORS_BASE + 1;
  98. // NO_PERMISSION exception minor codes
  99. // NO_RESOURCES exception minor codes
  100. public static final int
  101. PI_OPERATION_NOT_SUPPORTED = OMGVMCID.value + 1;
  102. // NO_RESPONSE exception minor codes
  103. // OBJ_ADAPTER exception minor codes
  104. // INITIALIZE exception minor codes
  105. // PERSIST_STORE exception minor codes
  106. // TRANSIENT exception minor codes
  107. public static final int
  108. REQUEST_CANCELLED = OMGVMCID.value + 3;
  109. // UNKNOWN exception minor codes
  110. public static final int
  111. UNKNOWN_USER_EXCEPTION = OMGVMCID.value + 1;
  112. public static final int
  113. UNKNOWN_REQUEST_INVOKE = ORBConstants.PORTABLE_INTERCEPTORS_BASE + 1;
  114. // OBJECT_NOT_EXIST exception minor codes
  115. } ;