java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject
se.michaelthelin.spotify.model_objects.specification.Error
All Implemented Interfaces:
Serializable, IModelObject

public class Error extends AbstractModelObject
Retrieve information about Error objects by building instances from this class.
See Also:
  • Method Details

    • getStatus

      public Integer getStatus()
      Get the HTTP status code of the Error object.
      Returns:
      The HTTP status code.
    • getMessage

      public String getMessage()
      Get the error message (description of the cause) of the Error object.
      Returns:
      A short description of the cause of the error.
    • toString

      public String toString()
      Description copied from class: AbstractModelObject
      Returns a String representation of this model object in the style:

      ModelObject(attr1=value1, attr2=value2, ...)

      Specified by:
      toString in class AbstractModelObject
    • builder

      public Error.Builder builder()
      Description copied from interface: IModelObject
      Create a builder for building an instance of a model object.
      The type of the builder and its methods depend on its corresponding implementation.
      Returns:
      A builder object.