public class SCIMException extends Exception implements SCIMResponse
| Modifier | Constructor and Description |
|---|---|
protected |
SCIMException(int statusCode,
String errorMessage)
Create a new SCIM exception from the provided informatuon.
|
protected |
SCIMException(int statusCode,
String errorMessage,
Throwable cause)
Create a new SCIM exception from the provided informatuon.
|
| Modifier and Type | Method and Description |
|---|---|
static SCIMException |
createException(int statusCode,
String errorMessage)
Create the appropriate SCIMException from the provided information.
|
static SCIMException |
createException(int statusCode,
String errorMessage,
Exception cause)
Create the appropriate SCIMException from the provided information.
|
int |
getStatusCode()
Retrieve the HTTP status code for this SCIM exception.
|
void |
marshal(Marshaller marshaller,
OutputStream outputStream)
Marshals this response using the specified
Marshaller to the
specified OutputStream. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected SCIMException(int statusCode, String errorMessage)
statusCode - The HTTP status code for this SCIM exception.errorMessage - The error message for this SCIM exception.protected SCIMException(int statusCode, String errorMessage, Throwable cause)
statusCode - The HTTP status code for this SCIM exception.errorMessage - The error message for this SCIM exception.cause - The cause (which is saved for later retrieval by the
Throwable.getCause() method). (A null value
is permitted, and indicates that the cause is
nonexistent or unknown.)public int getStatusCode()
public final void marshal(Marshaller marshaller, OutputStream outputStream) throws Exception
Marshaller to the
specified OutputStream.marshal in interface SCIMResponsemarshaller - The Marshaller to use.outputStream - The OutputStream to write to.Exception - if an error occurs while performing the marshaling.public static SCIMException createException(int statusCode, String errorMessage)
statusCode - The HTTP status code for this SCIM exception.errorMessage - The error message for this SCIM exception.public static SCIMException createException(int statusCode, String errorMessage, Exception cause)
statusCode - The HTTP status code for this SCIM exception.errorMessage - The error message for this SCIM exception.cause - The cause (which is saved for later retrieval by the
Throwable.getCause() method). (A null value
is permitted, and indicates that the cause is
nonexistent or unknown.)Copyright © 2011–2016 UnboundID. All rights reserved.