Class RpcException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cz.metacentrum.perun.core.api.exceptions.rt.PerunRuntimeException
cz.metacentrum.perun.core.api.exceptions.InternalErrorException
cz.metacentrum.perun.core.api.exceptions.RpcException
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
This enum represents possible RPC error types. -
Constructor Summary
ConstructorDescriptionRpcException
(RpcException.Type type, String errorInfo) RpcException
(RpcException.Type type, String errorInfo, Throwable cause) RpcException
(RpcException.Type type, Throwable cause) RpcException
(String type, String errorInfo) -
Method Summary
Methods inherited from class cz.metacentrum.perun.core.api.exceptions.rt.PerunRuntimeException
getErrorId, getMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RpcException
- Parameters:
type
- type of the error.errorInfo
- additional error information.
-
RpcException
- Parameters:
type
- type of the error.
-
RpcException
- Parameters:
type
- type of the error.errorInfo
- additional error information.cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method).
-
RpcException
- Parameters:
type
- type of the error.cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method).
-
RpcException
- Parameters:
type
- string representation of type of the error.errorInfo
- additional error information.
-
-
Method Details
-
getErrorInfo
- Returns:
- additional error information or null if there is none.
-
getType
- Overrides:
getType
in classPerunRuntimeException
- Returns:
- type of the error.
-