Source for org.omg.CORBA.BAD_OPERATION

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