Class UserRemoteException

All Implemented Interfaces:
Serializable

public class UserRemoteException extends UserException
Wraps a DrillPBError object so we don't need to rebuilt it multiple times when sending it to the client. It also gives access to the original exception className and message.
See Also:
  • Constructor Details

  • Method Details

    • getMessage

      public String getMessage()
      Description copied from class: UserException
      generates the message that will be displayed to the client without the stack trace.
      Overrides:
      getMessage in class UserException
      Returns:
      non verbose error message
    • getOrCreatePBError

      public UserBitShared.DrillPBError getOrCreatePBError(boolean verbose)
      Description copied from class: UserException
      returns or creates a DrillPBError object corresponding to this user exception.
      Overrides:
      getOrCreatePBError in class UserException
      Parameters:
      verbose - should the error object contain the verbose error message ?
      Returns:
      protobuf error object