Class OperationFailedException

  • All Implemented Interfaces:
    Serializable

    public class OperationFailedException
    extends Exception
    A general base exception for an operation failure.
    Author:
    Thomas Pantelis
    See Also:
    Serialized Form
    • Constructor Detail

      • OperationFailedException

        public OperationFailedException​(String message,
                                        RpcError... errors)
        Constructs a new instance with the specified detail message and errors.
        Parameters:
        message - the detail message
        errors - RpcError instances that provide additional error information about this exception
      • OperationFailedException

        public OperationFailedException​(String message,
                                        Throwable cause,
                                        RpcError... errors)
        Constructs a new instance with the specified detail message, cause and errors.
        Parameters:
        message - the detail message
        cause - the cause
        errors - RpcError instances that provide additional error information about this exception
    • Method Detail

      • getErrorList

        public List<RpcError> getErrorList()
        Returns additional error information about this exception.
        Returns:
        a List of RpcErrors. There is always at least one RpcError.