Package io.hanko.sdk.exception
Class HankoAuthenticationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.hanko.sdk.exception.HankoException
io.hanko.sdk.exception.HankoApiException
io.hanko.sdk.exception.HankoAuthenticationException
- All Implemented Interfaces:
Serializable
Exception occurring when requests to the Hanko API cannot be authenticated (i.e. have a 401
status code).
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorsConstructorDescriptionHankoAuthenticationException(String message)
Construct a new HankoAuthenticationException with the specified detail message.HankoAuthenticationException(String message, Integer status, String requestPath, String content)
Construct a new HankoAuthenticationException with the specified detail message, the Hanko API response status, the original request path and the Hanko API response content. -
Method Summary
Methods inherited from class io.hanko.sdk.exception.HankoApiException
getContent, getRequestPath, getStatus
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HankoAuthenticationException
Construct a new HankoAuthenticationException with the specified detail message.- Parameters:
message
- the detail message
-
HankoAuthenticationException
public HankoAuthenticationException(String message, Integer status, String requestPath, String content)Construct a new HankoAuthenticationException with the specified detail message, the Hanko API response status, the original request path and the Hanko API response content.- Parameters:
message
- the detail messagestatus
- the Hanko API HTTP response statusrequestPath
- the original request pathcontent
- the Hanko API response content
-