Class Error
- java.lang.Object
-
- com.wrapper.spotify.model_objects.AbstractModelObject
-
- com.wrapper.spotify.model_objects.specification.Error
-
- All Implemented Interfaces:
IModelObject
public class Error extends AbstractModelObject
Retrieve information about Error objects by building instances from this class.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classError.BuilderBuilder class for buildingErrorinstances.static classError.JsonUtilJsonUtil class for buildingErrorinstances.-
Nested classes/interfaces inherited from interface com.wrapper.spotify.model_objects.IModelObject
IModelObject.IJsonUtil<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Error.Builderbuilder()Create a builder for building an instance of a model object.StringgetMessage()Get the error message (description of the cause) of theErrorobject.IntegergetStatus()Get the HTTP status code of theErrorobject.
-
-
-
Method Detail
-
getStatus
public Integer getStatus()
Get the HTTP status code of theErrorobject.- Returns:
- The HTTP status code.
-
getMessage
public String getMessage()
Get the error message (description of the cause) of theErrorobject.- Returns:
- A short description of the cause of the error.
-
builder
public Error.Builder builder()
Description copied from interface:IModelObjectCreate 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.
-
-