public class MicroAgentException
extends java.lang.Exception
implements java.io.Serializable
It may be used directly or as a container for other exceptions.
When used as a container, the embedded exception is stored
in its serialized form. A ClassNotFound exception may be thrown
by the getException()
method if the class of the contained
exception is not available on the receiving JVM.
Constructor and Description |
---|
MicroAgentException(java.lang.Exception e)
Constructs a MicroAgentException with an embedded exception.
|
MicroAgentException(java.lang.String msg)
Constructs a MicroAgentException with a detailed message.
|
MicroAgentException(java.lang.String msg,
java.lang.Exception e)
Constructs a MicroAgentException with an embedded exception and a detailed message.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Exception |
getException()
Returns the embedded exception.
|
public MicroAgentException(java.lang.String msg)
msg
- The detailed message.public MicroAgentException(java.lang.Exception e) throws java.io.IOException
Sets the detailed message to be the same as the embedded exception.
e
- The exception to embed.java.io.IOException
- If there is a problem serializing
the embedded exception.public MicroAgentException(java.lang.String msg, java.lang.Exception e) throws java.io.IOException
msg
- The detailed message.e
- The exception to embed.java.io.IOException
- If there is a problem serializing
the embedded exception.public java.lang.Exception getException() throws java.lang.ClassNotFoundException, java.io.IOException
java.io.IOException
- If there is a problem de-serializing
the embedded exception.java.lang.ClassNotFoundException
- if the class of the embedded exception is not found.Copyright © 2000-2019 TIBCO Inc. All Rights Reserved.