Package com.datarobot.model
Class ErrorResponse
- java.lang.Object
-
- com.datarobot.model.ErrorResponse
-
- All Implemented Interfaces:
java.io.Serializable
public class ErrorResponse extends java.lang.Object implements java.io.SerializableTheErrorResponseobject contains Error information when aClientExceptionoccurs.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ErrorResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.HashMap<java.lang.String,java.lang.Object>getErrors()java.lang.StringgetMessage()intgetStatusCode()java.lang.StringgetStatusMessage()inthashCode()voidsetAdditionalProperty(java.lang.String name, java.lang.Object value)voidsetStatusCode(int statusCode)Used to set the HTTPStatus code of the HTTP Response.voidsetStatusMessage(java.lang.String message)Sets the Status message of the HTTP Response.java.lang.StringtoString()
-
-
-
Method Detail
-
getStatusMessage
public java.lang.String getStatusMessage()
- Returns:
- The Status message of the HTTP Response.
-
setStatusMessage
public void setStatusMessage(java.lang.String message)
Sets the Status message of the HTTP Response.- Parameters:
message- the message to be set on thisErrorResponse
-
getStatusCode
public int getStatusCode()
- Returns:
- The HTTP Status code of the HTTP Response.
-
setStatusCode
public void setStatusCode(int statusCode)
Used to set the HTTPStatus code of the HTTP Response.- Parameters:
statusCode- The HTTP Status code of the current error.
-
getMessage
public java.lang.String getMessage()
- Returns:
- The error message in the response.
-
getErrors
public java.util.HashMap<java.lang.String,java.lang.Object> getErrors()
- Returns:
- An array of errors returned from the API.
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
setAdditionalProperty
public void setAdditionalProperty(java.lang.String name, java.lang.Object value)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-