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
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 Summary
ConstructorsConstructorDescriptionRPCExecutionException(@NonNull String message) Constructs a new RPC execution exception with the given message.RPCExecutionException(@NonNull String exceptionName, @NonNull String message) Constructs a new rpc execution exception instance, with a formatted human-readable message based on the supplied arguments. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RPCExecutionException
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.
-