|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.unboundid.scim.sdk.SCIMException
public class SCIMException
This class is the base class for all custom checked exceptions defined in the SCIM server.
| Constructor Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
static SCIMException |
createException(int statusCode,
String errorMessage)
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. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected 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.)| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||