public class RPCException extends PMPException
| Constructor and Description |
|---|
RPCException()
Constructs RPC exception
|
RPCException(java.lang.Exception exception)
Constucts RPC exception with a suplied nested exception
|
RPCException(java.lang.String message)
Constructs RPC exception with a supplied error message
|
RPCException(java.lang.String message,
java.lang.Exception exception)
Constucts RPC exception with a suplied nested exception and error message.
|
RPCException(java.lang.Throwable exception)
Constucts RPC exception with a suplied nested throwable
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Exception |
getBasicException()
Returns the actual exception caused by the remote application method, or null if the
exception is not caused by the application, but by the RPC Service.
|
java.lang.String |
getHostId()
Returns the id of the mPRM backend host which was target of the remote call.
|
RPCException |
getNextException()
If the exception was caused by multicast method invocation, all excepions
that might be thrown while invoking mutiple service instances are
linked in a list.
|
java.lang.Object |
getPartialResult()
If the exception was caused by multicast method invocation and only some
of the distinct invocations has thrown an error, than the final exception
holds the result of the successfully finshed methods.
|
void |
setNextException(RPCException exception)
Not intended for application use.
|
void |
setPartialResult(java.lang.Object result)
Not intended for application use.
|
public RPCException()
public RPCException(java.lang.String message)
message - the error messagepublic RPCException(java.lang.Exception exception)
exception - the nested exceptionpublic RPCException(java.lang.Throwable exception)
exception - the nested exceptionpublic RPCException(java.lang.String message,
java.lang.Exception exception)
message - the error messageexception - the nested exceptionpublic java.lang.Exception getBasicException()
getBasicException in class PMPExceptionpublic RPCException getNextException()
null if this is
the last exception.public java.lang.Object getPartialResult()
null
if the is no such result.public java.lang.String getHostId()
public void setNextException(RPCException exception)
public void setPartialResult(java.lang.Object result)
Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.