|
Oracle Fusion Middleware Java API Reference for Oracle Access Management Mobile and Social | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.lang.Throwable
java.lang.Exception
oracle.security.idaas.common.util.OICBaseException
oracle.security.idaas.rest.jaxrs.client.sdk.OICClientException
public class OICClientException
This class encapsulates exceptions that occur when using the clientsdk APIs. This class is common to all the methods of the clientsdk.
Field Summary |
---|
Fields inherited from class oracle.security.idaas.common.util.OICBaseException |
---|
errorCode |
Constructor Summary | |
---|---|
OICClientException() |
|
OICClientException(java.lang.String message) Constructs a new OICClientException with the specified detail message. |
|
OICClientException(java.lang.String message, java.lang.String errorCode) Constructor to create an OICClientException using a message and error code. |
|
OICClientException(java.lang.String message, java.lang.String code, java.lang.String oicErrorCode) Constructor to create an OICClientException using a message and status code and oic-specific error code. |
|
OICClientException(java.lang.String message, java.lang.String code, java.lang.String oicErrorCode, java.lang.String body) Constructor to create an OICClientException using a message and status code and oic-specific error code and response body. |
|
OICClientException(java.lang.String message, java.lang.String errorCode, java.lang.Throwable cause) Constructor to create an OICClientException using a message and error code. |
|
OICClientException(java.lang.String message, java.lang.Throwable cause) Constructs a new OICClientException with the specified detail message and cause. |
|
OICClientException(java.lang.Throwable cause) Constructs a new OICClientException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). |
Method Summary | |
---|---|
java.lang.String |
getBody() For exceptions that resulted in a HTTP status code from the access to the server REST APIs, a string status code and description would be set on the response and could be retrieved using this method. |
java.lang.String |
getCode() For exceptions that resulted in a HTTP status code from the access to the server REST APIs, a string status code and description would be set on the response and could be retrieved using this method. |
void |
setBody(java.lang.String body) For exceptions that resulted in a HTTP status code from the access to the server REST APIs, a string status code and description would be set. |
void |
setCode(java.lang.String code) For exceptions that resulted in a HTTP status code from the access to the server REST APIs, a string status code and description would be set. |
java.lang.String |
toString() |
Methods inherited from class oracle.security.idaas.common.util.OICBaseException |
---|
getErrorCode |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface oracle.security.idaas.common.util.OICException |
---|
getCause, getMessage |
Constructor Detail |
---|
public OICClientException()
public OICClientException(java.lang.String message)
Throwable.initCause(java.lang.Throwable)
.
message
- the detail message. The detail message is saved for later retrieval by the Throwable.getMessage()
method.public OICClientException(java.lang.String message, java.lang.Throwable cause)
Note that the detail message associated with cause
is not automatically incorporated in this OICClientException's detail message.
message
- the detail message (which is saved for later retrieval by the Throwable.getMessage()
method).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 OICClientException(java.lang.Throwable cause)
PrivilegedActionException
).
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 OICClientException(java.lang.String message, java.lang.String errorCode)
message
- is a message offering description of the exception.errorCode
- is the error code.public OICClientException(java.lang.String message, java.lang.String errorCode, java.lang.Throwable cause)
message
- is a message offering description of the exception.errorCode
- is the error code.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 OICClientException(java.lang.String message, java.lang.String code, java.lang.String oicErrorCode)
message
- is a message offering description of the exception.code
- is the error code.oicErrorCode
- is the oic-specific error code usually returned by the REST server in a response json message in addition to status code and other typiocal response info.public OICClientException(java.lang.String message, java.lang.String code, java.lang.String oicErrorCode, java.lang.String body)
message
- is a message offering description of the exception.code
- is the error code.oicErrorCode
- is the oic-specific error code usually returned by the REST server in a response json message in addition to status code and other typiocal response info.body
- is the http response bodyMethod Detail |
---|
public java.lang.String getCode()
public void setCode(java.lang.String code)
code
- error code from the http response.public java.lang.String getBody()
public void setBody(java.lang.String body)
body
- the http response body.public java.lang.String toString()
toString
in class java.lang.Throwable
|
Copyright (c) 2012, Oracle All Rights Reserved. Built 06/05/2012 17:18:07 PDT |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |