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

public class PluginRpcEndpointException extends RuntimeException
Base exception class for problems encountered in the RpcEndpointService.
See Also:
  • Constructor Details

    • PluginRpcEndpointException

      public PluginRpcEndpointException(RpcMethodError rpcMethodError)
      Constructs a new PluginRpcEndpointException exception with the specified error.
      Parameters:
      rpcMethodError - the error.
    • PluginRpcEndpointException

      public PluginRpcEndpointException(RpcMethodError rpcMethodError, String data)
      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

      public PluginRpcEndpointException(RpcMethodError rpcMethodError, String data, Throwable cause)
      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 the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
  • Method Details

    • getRpcMethodError

      public RpcMethodError getRpcMethodError()
      Get the error
      Returns:
      the error
    • getData

      public String getData()
      Get the data associated with the exception
      Returns:
      data as string, could be null.