Package com.sodius.oslc.client
Class ClientAuthenticationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sodius.oslc.client.ClientRuntimeException
com.sodius.oslc.client.ClientAuthenticationException
- All Implemented Interfaces:
Serializable
Thrown for security authentication related exceptions.
- Since:
- 3.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionClientAuthenticationException(String message) Creates an instance specifying the exception message.ClientAuthenticationException(String message, ClientResponse response) Creates an instance specifying the exception message and the client response that originated this exception. -
Method Summary
Modifier and TypeMethodDescriptionGets the remote response body asString, if any.Gets the response headers.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ClientAuthenticationException
Creates an instance specifying the exception message and the client response that originated this exception.- Parameters:
message- the exception message.response- the client response.- Since:
- 4.0.0
-
ClientAuthenticationException
Creates an instance specifying the exception message.- Parameters:
message- the exception message.
-
-
Method Details
-
getResponseBody
Gets the remote response body asString, if any.- Returns:
- an empty
Optionalif response has no body; the containedStringreference otherwise. - Since:
- 4.0.0
-
getResponseHeaders
Gets the response headers.- Returns:
- the response headers.
- Since:
- 4.0.0
-