Class PluginRpcEndpointException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.hyperledger.besu.plugin.services.exception.PluginRpcEndpointException
- All Implemented Interfaces:
Serializable
Base exception class for problems encountered in the RpcEndpointService.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPluginRpcEndpointException(RpcMethodError rpcMethodError) Constructs a new PluginRpcEndpointException exception with the specified error.PluginRpcEndpointException(RpcMethodError rpcMethodError, String data) Constructs a new PluginRpcEndpointException exception with the specified error and message.PluginRpcEndpointException(RpcMethodError rpcMethodError, String data, Throwable cause) Constructs a new PluginRpcEndpointException exception with the specified error, message and cause. -
Method Summary
Modifier and TypeMethodDescriptiongetData()Get the data associated with the exceptionGet the errorMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PluginRpcEndpointException
Constructs a new PluginRpcEndpointException exception with the specified error.- Parameters:
rpcMethodError- the error.
-
PluginRpcEndpointException
Constructs a new PluginRpcEndpointException exception with the specified error and message.- Parameters:
rpcMethodError- the error.data- the data associated with the exception that could be parsed to extract more information to return in the error response.
-
PluginRpcEndpointException
Constructs a new PluginRpcEndpointException exception with the specified error, message and cause.- Parameters:
rpcMethodError- the error.data- the data associated with the exception that could be parsed to extract more information to return in the error response.cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
-
-
Method Details
-
getRpcMethodError
-
getData
Get the data associated with the exception- Returns:
- data as string, could be null.
-