public class TransportException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
static int |
BADPROPERTIES
Transport was passed an invalid property set
|
static int |
DECODINGFAILURE
Trouble sending transport event to decoder
|
static int |
INTERNALERROR
Some unspecified internal error occurred
|
static int |
OK
Everything is fine
|
static int |
TRANSPORTFAILURE
Trouble reading/writing the external transport
|
Constructor and Description |
---|
TransportException(java.lang.String message)
Constructs a TransportException from a string message describing the
error, and assumes an error code of TRANSPORTFAILURE.
|
TransportException(java.lang.String message,
int code)
Constructs a TransportException from a string message describing the
error and a numeric code representing the class of error.
|
TransportException(java.lang.String message,
java.lang.Throwable cause)
Constructs a TransportException from a string message describing the
error, and an exception object that is the cause of the error.
|
TransportException(java.lang.String message,
java.lang.Throwable cause,
int code)
Constructs a TransportException from a string message describing the
error, a numeric code representing the class of error and an exception
object that is the cause of the error.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Returns the integer code representing the type of transport error that
occurred.
|
public static final int OK
public static final int INTERNALERROR
public static final int TRANSPORTFAILURE
public static final int DECODINGFAILURE
public static final int BADPROPERTIES
public TransportException(java.lang.String message)
message
- The cause of the error.public TransportException(java.lang.String message, int code)
message
- The cause of the error.code
- One of the TransportException error codes.public TransportException(java.lang.String message, java.lang.Throwable cause)
message
- The cause of the error. This message will be suffixed
with the message of the 'cause' exception.cause
- The exception object that caused the error.public TransportException(java.lang.String message, java.lang.Throwable cause, int code)
message
- The cause of the error. This message will be suffixed
with the message of the 'cause' exception.cause
- The exception object that caused the error.code
- One of the TransportException error codes.Submit a bug or feature
Copyright (c) 2013-2018 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.