-
- All Implemented Interfaces:
-
java.io.Serializable
public final class ManagementException extends Auth0Exception
-
-
Field Summary
Fields Modifier and Type Field Description private Integer
statusCode
private final Boolean
isNetworkError
private final Throwable
cause
private final String
message
-
Constructor Summary
Constructors Constructor Description ManagementException(String payload, Integer statusCode)
ManagementException(Map<String, Object> values)
ManagementException(String message, Auth0Exception exception)
-
Method Summary
Modifier and Type Method Description final String
getCode()
Auth0 error code if the server returned one or an internal library code (e.g. final String
getDescription()
Description of the error. final Object
getValue(String key)
Returns a value from the error map, if any. final Integer
getStatusCode()
Http Response status code. final Boolean
getIsNetworkError()
Throwable
getCause()
String
getMessage()
final Unit
setStatusCode(Integer statusCode)
-
Methods inherited from class kotlin.Throwable
equals, hashCode, toString
-
Methods inherited from class java.lang.Exception
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getCode
final String getCode()
Auth0 error code if the server returned one or an internal library code (e.g.: when the server could not be reached)
-
getDescription
final String getDescription()
Description of the error. important: You should avoid displaying description to the user, it's meant for debugging only.
-
getValue
final Object getValue(String key)
Returns a value from the error map, if any.
- Parameters:
key
- key of the value to return
-
getStatusCode
final Integer getStatusCode()
Http Response status code. Can have value of 0 if not set.
-
getIsNetworkError
final Boolean getIsNetworkError()
-
getMessage
String getMessage()
-
setStatusCode
final Unit setStatusCode(Integer statusCode)
-
-
-
-