|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.eclipse.smila.ipc.IpcException
public class IpcException
A wrapper class to for exceptions to be transformed to/from JSON error objects.
| Constructor Summary | |
|---|---|
IpcException(java.lang.String message)
constructur with message. |
|
IpcException(java.lang.String message,
java.lang.Throwable cause)
constructur with mesage and causing exception. |
|
IpcException(java.lang.Throwable cause)
constructur with causing exception. |
|
| Method Summary | |
|---|---|
void |
write(IpcStreamWriter writer)
Writes the JsonException as a JSON object to the given OutputStream. |
static void |
write(IpcStreamWriter writer,
java.lang.Throwable ex)
Writes an Exception as a JSON object to the given OutputStream. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IpcException(java.lang.String message)
message - detailed error message.public IpcException(java.lang.Throwable cause)
cause - exception that caused the error.
public IpcException(java.lang.String message,
java.lang.Throwable cause)
message - detailed error message.cause - exception that caused the error.| Method Detail |
|---|
public void write(IpcStreamWriter writer)
throws java.io.IOException
writer - the IpcStreamWriter contains an OutputStream to write to
java.io.IOException - if any error occusr
public static void write(IpcStreamWriter writer,
java.lang.Throwable ex)
throws java.io.IOException
writer - the IpcStreamWriter contains an OutputStreamex - the exception to write
java.io.IOException - if any error occusr
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||