Class RPCExecutionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
eu.cloudnetservice.driver.network.rpc.exception.RPCExecutionException
All Implemented Interfaces:
Serializable

public final class RPCExecutionException extends RuntimeException
An exception thrown when an RPC terminated unsuccessfully, for example because the remote method threw an exception or invalid data was supplied.
Since:
4.0
See Also:
  • Constructor Details

    • RPCExecutionException

      public RPCExecutionException(@NonNull @NonNull String message)
      Constructs a new RPC execution exception with the given message.
      Parameters:
      message - the message to use for the exception.
      Throws:
      NullPointerException - if the given message is null.
    • RPCExecutionException

      public RPCExecutionException(@NonNull @NonNull String exceptionName, @NonNull @NonNull String message)
      Constructs a new rpc execution exception instance, with a formatted human-readable message based on the supplied arguments.
      Parameters:
      exceptionName - the name of the original thrown exception.
      message - the message of the original thrown exception.
      Throws:
      NullPointerException - if either the given exception name or message is null.