Class RpcException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.inductiveautomation.ignition.common.rpc.RpcException
- All Implemented Interfaces:
Serializable
Common wrapper for an exception that is thrown during an RPC call. May use an error code (from
GatewayConstants
) to indicate a broad class of error, to dictate UI handling on the "frontend".- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRpcException
(String message) RpcException
(String message, int errorCode) RpcException
(String message, @Nullable Throwable cause, int errorCode) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RpcException
-
RpcException
-
RpcException
-
-
Method Details
-
getErrorCode
public int getErrorCode()
-