Class RpcException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.inductiveautomation.ignition.common.rpc.RpcException
All Implemented Interfaces:
Serializable

public final class RpcException extends Exception
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 Details

    • RpcException

      public RpcException(String message, @Nullable @Nullable Throwable cause, int errorCode)
    • RpcException

      public RpcException(String message, int errorCode)
    • RpcException

      public RpcException(String message)
  • Method Details

    • getErrorCode

      public int getErrorCode()