|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--org.objectweb.mobilitools.smi.api.BadOperation
MobiliTools $Name: $, $Id: BadOperation.java,v 1.1.1.1 2003/03/28 14:48:05 dillense Exp $
Exception indicating that a request has failed.
Field Summary | |
static int |
AGENTTYPE
agent type is not recognized = 10 |
static int |
CLASSFAULT
agent class fetch problem = 4 |
static int |
DESTINATION
destination agency for agent move is unknown = 3 |
static int |
INFRASTRUCTURE
infrastructure (network, CORBA, naming service...) problem = 2 |
static int |
INSTANTIATION
agent class could not be instantiated (check access, security, abstract class, static constructor...) |
static int |
INVALIDNAME
name is invalid (already exists? |
protected java.lang.String |
message
failure explanation message |
protected java.lang.Exception |
nested
nested exception |
static int |
OTHER
unspecified failure = 0 |
protected int |
reason
failure identification |
static int |
REJECTED
the target agent rejected the operation = 1 |
static int |
RETRY
a (temporary/normal or permanent/abnormal?) |
static int |
RUNNING
agent is active after a suspend or resume request failure = 7 |
static int |
SERIALIZATION
agent or argument object de/serialization failure = 6 |
static int |
SUSPENDED
agent is suspended after a suspend or resume request failure = 8 |
static int |
UNKNOWNAGENCY
unknown agency = 13 |
static int |
UNKNOWNAGENT
the target agent is unknown = 5 |
Constructor Summary | |
BadOperation(int reason,
java.lang.String message)
Creates a new exception to signal any request failure. |
|
BadOperation(int reason,
java.lang.String message,
java.lang.Exception nested)
Creates a new exception to signal any request failure. |
Method Summary | |
java.lang.String |
getMessage()
|
java.lang.Exception |
getNested()
|
int |
getReason()
|
void |
printAllStackTrace()
Prints the execution stack trace first, and then the nested exception stack trace if any. |
void |
printAllStackTrace(java.io.PrintStream s)
Prints the execution stack trace first, and then the nested exception stack trace if any. |
void |
printAllStackTrace(java.io.PrintWriter w)
Prints the execution stack trace first, and then the nested exception stack trace if any. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int OTHER
public static final int REJECTED
public static final int INFRASTRUCTURE
public static final int DESTINATION
public static final int CLASSFAULT
public static final int UNKNOWNAGENT
public static final int SERIALIZATION
public static final int RUNNING
public static final int SUSPENDED
public static final int INSTANTIATION
public static final int AGENTTYPE
public static final int INVALIDNAME
public static final int UNKNOWNAGENCY
public static final int RETRY
protected int reason
protected java.lang.String message
protected java.lang.Exception nested
Constructor Detail |
public BadOperation(int reason, java.lang.String message)
reason
- failure identification - should be one of the identifiers defined in this class.message
- failure explanation message.public BadOperation(int reason, java.lang.String message, java.lang.Exception nested)
reason
- failure identification - should be one of the identifiers defined in this class.message
- failure explanation message.nested
- the actual exception this BadOperation springs from.Method Detail |
public int getReason()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.Exception getNested()
public java.lang.String toString()
toString
in class java.lang.Throwable
public void printAllStackTrace()
public void printAllStackTrace(java.io.PrintStream s)
s
- where to print stack trace.public void printAllStackTrace(java.io.PrintWriter w)
w
- where to print stack trace.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |