Class ApiError

java.lang.Object
travel.wink.hotelbeds.booking.sdk.model.ApiError

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-10-04T11:28:08.331690043+07:00[Asia/Bangkok]") public class ApiError extends Object
Information on the error. Only returned in case of error.
  • Field Details

  • Constructor Details

    • ApiError

      public ApiError()
  • Method Details

    • code

      public ApiError code(String code)
    • getCode

      @Nonnull @NotNull public @NotNull String getCode()
      Internal token code of the error.
      Returns:
      code
    • setCode

      public void setCode(String code)
    • message

      public ApiError message(String message)
    • getMessage

      @Nullable public String getMessage()
      Descriptive message of the cause of the error.
      Returns:
      message
    • setMessage

      public void setMessage(String message)
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object