Class ResponseResultInfo.Error

java.lang.Object
codes.thischwa.cf.model.ResponseResultInfo.Error
Enclosing class:
ResponseResultInfo

public static class ResponseResultInfo.Error extends Object
Represents an error with a specific code and message.

This class is used to encapsulate error information, including a numerical error code and a corresponding descriptive message. It is often used as part of a collection of errors to provide detailed diagnostics for failed operations or processes.

  • Constructor Details

    • Error

      public Error()
      Constructs a new instance of the Error class with default values for its properties.

      This no-argument constructor initializes an Error object without setting specific values for the error code or message. It is primarily used when an error needs to be created and set up later, or when default values are acceptable.

    • Error

      public Error(int code, String message)
      Constructs an instance of the Error class with a specified error code and message.
      Parameters:
      code - the numerical code representing the error
      message - the descriptive message providing details about the error
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getCode

      public int getCode()
    • getMessage

      public String getMessage()
    • setCode

      public void setCode(int code)
    • setMessage

      public void setMessage(String message)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object