eneter.messaging.endpoints.rpc
Class RpcException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
eneter.messaging.endpoints.rpc.RpcException
- All Implemented Interfaces:
- java.io.Serializable
public class RpcException
- extends java.lang.RuntimeException
Exception thrown if an RPC call fails on the service side.
E.g. in case the service method throws an exception it is transfered to the client.
When the client receives the exception from the service it creates RpcException and stores there all details
about original service exception. The RpcException is then thrown and can be processed by the client.
- See Also:
- Serialized Form
Constructor Summary |
RpcException(java.lang.String message,
java.lang.String serviceExceptionType,
java.lang.String serviceExceptionDetails)
Constructs the exception. |
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 |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RpcException
public RpcException(java.lang.String message,
java.lang.String serviceExceptionType,
java.lang.String serviceExceptionDetails)
- Constructs the exception.
- Parameters:
message
- original message from the service.serviceExceptionType
- name of the exception type thrown in the service.serviceExceptionDetails
- exception details including the callstack.
getServiceExceptionType
public java.lang.String getServiceExceptionType()
- Gets name of the exception type thrown in the service.
- Returns:
- name of the exception type
getServiceExceptionDetails
public java.lang.String getServiceExceptionDetails()
- Gets service exception details including callstack.
- Returns:
- exception details.