FRAMES NO FRAMES | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | MEMBER | ACTION | DETAIL: IMPORT | CONSTANT | MEMBER | ACTION |
throw Exception("No readings", "IllegalArgumentException");You cannot route an Exception object, but a routable object can have an Exception object as a member.
try {Exceptions can be parsed, routed and compared. They are not cyclic.
methodThatThrows();
} catch(com.apama.exceptions.Exception e) {
// handle the exception here
}
Action summary | |
---|---|
boolean | static canParse(string s)
Check whether it is possible to parse the string argument as an exception. |
com.apama.exceptions.Exception |
clone()
Create a deep copy of this exception. |
string |
getMessage()
Get the message in this exception. |
sequence<com.apama.exceptions.StackTraceElement> |
getStackTrace()
Get the stack trace at the point this exception was thrown. |
string |
getType()
Get the type of this exception. |
integer |
hash()
Get an integer hash representation of the underlying object. |
com.apama.exceptions.Exception | static parse(string s)
Parse a string as an exception. |
string |
toString()
Return a string form of the exception. |
string |
toStringWithStackTrace()
Format this exception and the stack trace. |
Action detail |
---|
boolean static canParse(string s)Check whether it is possible to parse the string argument as an exception.
com.apama.exceptions.Exception clone()Create a deep copy of this exception.
string getMessage()Get the message in this exception.
sequence<com.apama.exceptions.StackTraceElement> getStackTrace()Get the stack trace at the point this exception was thrown.
string getType()Get the type of this exception.
ArithmeticException | Illegal arithmetic operations. Example: Attempt to divide by 0, call to the ceil() method on NaN, call to the exponent() method on infinity, specifying NaN as all or part of an ordered key, call to the rand() method on an illegal float value such as Infinity. |
CastException | Thrown when casting an any value to a type which does not match the type of the any value. |
DefaultContextException | Spawning, sending or enqueuing to a context and specifying a context variable that has been declared but the context has not yet been created. |
IndexOutOfBoundsException | Invalid index in a sequence or string operation. |
IllegalArgumentException | Illegal argument value in an expression. |
IllegalStateException | Calling an action when it is illegal to do so. For example, a spawn statement in ondie() or onunload(). |
MemoryAllocationException | Unable to fulfill memory allocation request. For example, an invalid size is passed to the sequence setCapacity() method. |
NullPointerException | Attempt to call an action variable when that variable has not been initialized, or to call getOrThrow on an optional instance that is empty. Operations on an empty any will throw a ClassCastException. |
OtherInternalException | An internal error not represented by another exception type. |
ParseException | Error that occurs while parsing. |
PluginException | An exception thrown by an EPL plug-in. Plug-ins may append an addition type to this using a colon (:). For example, Java plug-ins will throw exceptions with the type PluginException:java.class.Name. |
StackOverflowException | Attempting to use more space than is available on the stack, typically from recursive function calls. |
UnmatchedTypeException | Thrown by the switch statement if none of the case clauses match the type of the any value and there is no default clause (or the any is an empty value). |
integer hash()Get an integer hash representation of the underlying object.
com.apama.exceptions.Exception static parse(string s)Parse a string as an exception.
string toString()Return a string form of the exception.
string toStringWithStackTrace()Format this exception and the stack trace.
FRAMES NO FRAMES | |||||||
| |||||||
SUMMARY: IMPORT | CONSTANT | MEMBER | ACTION | DETAIL: IMPORT | CONSTANT | MEMBER | ACTION |