|
|||||||||
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.wli.sb.transports.TransportException
public class TransportException
Represents an exception within the ALSB Transport subsystem (either in a specific transport provider or in the transport framework itself)
Constructor Summary | |
---|---|
TransportException()
Constructs a TransportException. |
|
TransportException(String msg)
Constructs a TransportException with the specified message text. |
|
TransportException(String msg,
String errorCode)
Constructs a TransportException with the specified message text and specified error code |
|
TransportException(String message,
Throwable cause)
Constructs a TransportException with the specified detail message and cause. |
|
TransportException(String message,
Throwable cause,
String errorCode)
Constructs a TransportException with the specified detail message and cause and error code. |
|
TransportException(Throwable cause)
Constructs a TransportException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). |
|
TransportException(Throwable cause,
String errorCode)
Constructs a TransportException with the specified cause and error code. |
Method Summary | |
---|---|
String |
getErrorCode()
|
static TransportException |
newInstance(Throwable cause)
Most transport SDK API signatures declare only TransportException 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 TransportException()
public TransportException(String msg)
msg
- Message text.public TransportException(String msg, String errorCode)
msg
- Message text.errorCode
- error codepublic TransportException(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 TransportException(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 TransportException(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 TransportException(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 codeMethod Detail |
---|
public String getErrorCode()
public static TransportException newInstance(Throwable cause)
void someAPI() throws TransportException { try { .... } catch (Exception e) { throw TransportException.newInstance(e); } }
cause
- original cause of the exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |