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 Summary

    Constructors
    Constructor
    Description
    Constructs a new instance of the Error class with default values for its properties.
    Error(int code, String message)
    Constructs an instance of the Error class with a specified error code and message.
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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