BAD_OPERATION.java 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. /* BAD_OPERATION.java --
  2. Copyright (C) 2005, 2006 Free Software Foundation, Inc.
  3. This file is part of GNU Classpath.
  4. GNU Classpath is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.
  8. GNU Classpath is distributed in the hope that it will be useful, but
  9. WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GNU Classpath; see the file COPYING. If not, write to the
  14. Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  15. 02110-1301 USA.
  16. Linking this library statically or dynamically with other modules is
  17. making a combined work based on this library. Thus, the terms and
  18. conditions of the GNU General Public License cover the whole
  19. combination.
  20. As a special exception, the copyright holders of this library give you
  21. permission to link this library with independent modules to produce an
  22. executable, regardless of the license terms of these independent
  23. modules, and to copy and distribute the resulting executable under
  24. terms of your choice, provided that you also meet, for each linked
  25. independent module, the terms and conditions of the license of that
  26. module. An independent module is a module which is not derived from
  27. or based on this library. If you modify this library, you may extend
  28. this exception to your version of the library, but you are not
  29. obligated to do so. If you do not wish to do so, delete this
  30. exception statement from your version. */
  31. package org.omg.CORBA;
  32. import java.io.Serializable;
  33. /**
  34. * Means that the object exists but does not support the operation that was
  35. * invoked on it.
  36. *
  37. * In GNU Classpath, this exception may have the following Minor codes:
  38. *
  39. * <table border="1">
  40. * <tr>
  41. * <th>Hex</th>
  42. * <th>Dec</th>
  43. * <th>Minor</th>
  44. * <th>Name</th>
  45. * <th>Case</th>
  46. * </tr>
  47. * <tr>
  48. * <td>47430000</td>
  49. * <td>1195573248 </td>
  50. * <td>0</td>
  51. * <td>Method</td>
  52. * <td> The remote side requested to invoke the method that is not available on
  53. * that target (client and server probably disagree in the object definition).
  54. * This code is set when the problem arises in the Classpath core; the idlj and
  55. * rmic may generate the user code that sets 0x0 or other value.</td>
  56. * </tr>
  57. * <tr>
  58. * <td>47430009</td>
  59. * <td>1195573257</td>
  60. * <td>9</td>
  61. * <td>Any</td>
  62. * <td> Attempt to extract from the Any value of the different type that was
  63. * stored into that Any. </td>
  64. * </tr>
  65. * <tr>
  66. * <td>4743000a</td>
  67. * <td>1195573258</td>
  68. * <td>10</td>
  69. * <td>Activation</td>
  70. * <td>Failed to activate the inactive object due any reason.</td>
  71. * </tr>
  72. * <tr>
  73. * <td>4743000b</td>
  74. * <td>1195573259</td>
  75. * <td>11</td>
  76. * <td>Policy</td>
  77. * <td> The policies, applying to ORB or POA prevent the requested operation.
  78. * </td>
  79. * </tr>
  80. * <tr>
  81. * <td>4743000c</td>
  82. * <td>1195573260</td>
  83. * <td>12</td>
  84. * <td>Socket</td>
  85. * <td> Socket related errors like failure to open socket on the expected port.</td>
  86. * </tr>
  87. * <tr>
  88. * <td>4743000e</td>
  89. * <td>1195573262</td>
  90. * <td>14</td>
  91. * <td>Enumeration</td>
  92. * <td> The passed value for enumeration is outside the valid range for that
  93. * enumeration. </td>
  94. * </tr>
  95. * <tr>
  96. * <td>4743000f</td>
  97. * <td>1195573263</td>
  98. * <td>15</td>
  99. * <td>PolicyType</td>
  100. * <td> The passed policy code is outside the valid range of the possible
  101. * policies for the given policy type. </td>
  102. * </tr>
  103. * </table>
  104. *
  105. * @author Audrius Meskauskas (AudriusA@Bioinformatics.org)
  106. */
  107. public final class BAD_OPERATION
  108. extends SystemException
  109. implements Serializable
  110. {
  111. /**
  112. * Use serialVersionUID for interoperability.
  113. */
  114. private static final long serialVersionUID = 1654621651720499682L;
  115. /**
  116. * Creates a BAD_OPERATION with the default minor code of 0, completion state
  117. * COMPLETED_NO and the given explaining message.
  118. *
  119. * @param message the explaining message.
  120. */
  121. public BAD_OPERATION(String message)
  122. {
  123. super(message, 0, CompletionStatus.COMPLETED_NO);
  124. }
  125. /**
  126. * Creates BAD_OPERATION with the default minor code of 0 and a completion
  127. * state COMPLETED_NO.
  128. */
  129. public BAD_OPERATION()
  130. {
  131. super("", 0, CompletionStatus.COMPLETED_NO);
  132. }
  133. /**
  134. * Creates a BAD_OPERATION exception with the specified minor code and
  135. * completion status.
  136. *
  137. * @param minor additional error code.
  138. * @param completed the method completion status.
  139. */
  140. public BAD_OPERATION(int minor, CompletionStatus completed)
  141. {
  142. super("", minor, completed);
  143. }
  144. /**
  145. * Created BAD_OPERATION exception, providing full information.
  146. *
  147. * @param reason explaining message.
  148. * @param minor additional error code (the "minor").
  149. * @param completed the method completion status.
  150. */
  151. public BAD_OPERATION(String reason, int minor, CompletionStatus completed)
  152. {
  153. super(reason, minor, completed);
  154. }
  155. }