Class Error.Builder
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.specification.Error.Builder
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
Error
Builder class for building
Error
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a model object with the information set in the builder object.setMessage
(String message) The error message setter.The error HTTP status code setter.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setStatus
The error HTTP status code setter.- Parameters:
status
- The HTTP status code.- Returns:
- A
Error.Builder
.
-
setMessage
The error message setter.- Parameters:
message
- A short description of the cause of the error.- Returns:
- A
Error.Builder
.
-
build
Description copied from interface:IModelObject.Builder
Build a model object with the information set in the builder object.
The type of the model object and its methods depend on its corresponding implementation.- Returns:
- A model object.
-