public class DefaultError extends AbstractResource implements Error
Modifier and Type | Field and Description |
---|---|
static StringProperty |
ERROR_ID |
properties
readLock, writeLock
Constructor and Description |
---|
DefaultError() |
DefaultError(Map<String,Object> body) |
Modifier and Type | Method and Description |
---|---|
List<ErrorCause> |
getCauses()
Returns the list of causes of this error.
|
String |
getCode()
Returns the Okta specific error code.
|
Map<String,List<String>> |
getHeaders()
Returns the HTTP headers associated with this error response.
|
String |
getId()
Returns the error ID of this error.
|
String |
getMessage()
Returns the detail message string of this error.
|
Map<String,Property> |
getPropertyDescriptors() |
int |
getStatus()
Returns this error's HTTP status code.
|
DefaultError |
setCauses(Map<String,String> causes) |
DefaultError |
setCode(String code) |
DefaultError |
setHeaders(Map<String,List<String>> headers) |
DefaultError |
setId(String requestId) |
DefaultError |
setMessage(String message) |
DefaultError |
setStatus(int status) |
clear, containsKey, containsValue, createPropertyDescriptorMap, createPropertyDescriptorMap, entrySet, equals, get, getDataStore, getDeletedPropertyNames, getInternalProperties, getParamsFromHref, getProperty, getPropertyNames, getResourceHref, getResourceListProperty, getResourceProperty, getUpdatedPropertyNames, hashCode, hasProperty, isDirty, isEmpty, isPrintableProperty, keySet, materialize, put, putAll, remove, setInternalProperties, setProperty, setProperty, setResourceHref, size, toString, values
getBoolean, getBoolean, getBooleanProperty, getCharArray, getDateProperty, getDoubleProperty, getDoubleProperty, getEnumListProperty, getEnumProperty, getEnumProperty, getInt, getInteger, getIntegerList, getIntProperty, getIntProperty, getListProperty, getListProperty, getMap, getMapProperty, getNonEmptyMap, getNullableBoolean, getNullableBooleanProperty, getNumber, getNumberList, getString, getString, getStringList, getStringProperty, setProperty, setProperty
public static final StringProperty ERROR_ID
public Map<String,Property> getPropertyDescriptors()
getPropertyDescriptors
in class AbstractResource
public int getStatus()
Error
public DefaultError setStatus(int status)
public String getCode()
Error
public DefaultError setCode(String code)
public String getMessage()
Error
getMessage
in interface Error
public DefaultError setMessage(String message)
public String getId()
Error
public DefaultError setId(String requestId)
public List<ErrorCause> getCauses()
Error
public DefaultError setCauses(Map<String,String> causes)
public Map<String,List<String>> getHeaders()
Error
getHeaders
in interface Error
public DefaultError setHeaders(Map<String,List<String>> headers)
Copyright © 2017–2023 Okta. All rights reserved.