|
|||||||||
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 com.bea.alsb.resources.custom.CustomResourceException
public class CustomResourceException
Thrown when error encountered during custom resource creation.
Constructor Summary | |
---|---|
CustomResourceException()
Constructs a CustomResourceException. |
|
CustomResourceException(String msg)
Constructs a CustomResourceException with the specified message text. |
|
CustomResourceException(String message,
Source errorPayload)
|
|
CustomResourceException(String msg,
String errorCode)
Constructs a CustomResourceException with the specified message text and specified error code |
|
CustomResourceException(String message,
Throwable cause)
Constructs a CustomResourceException with the specified detail message and cause. |
|
CustomResourceException(String message,
Throwable cause,
String errorCode)
Constructs a CustomResourceException with the specified detail message and cause and error code. |
|
CustomResourceException(Throwable cause)
Constructs a CustomResourceException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). |
|
CustomResourceException(Throwable cause,
String errorCode)
Constructs a CustomResourceException with the specified cause and error code. |
Method Summary | |
---|---|
String |
getErrorCode()
|
Source |
getErrorPayload()
|
static CustomResourceException |
newInstance(Throwable cause)
Most transport SDK API signatures declare only CustomResourceException to be thrown. |
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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CustomResourceException()
public CustomResourceException(String msg)
msg
- Message text.public CustomResourceException(String msg, String errorCode)
msg
- Message text.errorCode
- error codepublic CustomResourceException(String message, Throwable cause)
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 CustomResourceException(String message, Throwable cause, String errorCode)
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.)errorCode
- error codepublic CustomResourceException(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 CustomResourceException(Throwable cause, String errorCode)
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.)errorCode
- error codepublic CustomResourceException(String message, Source errorPayload)
Method Detail |
---|
public Source getErrorPayload()
public String getErrorCode()
public static CustomResourceException newInstance(Throwable cause)
void someAPI() throws CustomResourceException { try { .... } catch (Exception e) { throw CustomResourceException.newInstance(e); } }
cause
- original cause of the exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |