public abstract class CarrierException
extends java.lang.Exception
| Modifier and Type | Field and Description |
|---|---|
static int |
FACILITY_DHT |
static int |
FACILITY_GENERAL |
static int |
FACILITY_ICE |
static int |
FACILITY_RESERVED1 |
static int |
FACILITY_RESERVED2 |
static int |
FACILITY_SYSTEM |
| Modifier | Constructor and Description |
|---|---|
protected |
CarrierException(int errorCode) |
protected |
CarrierException(int errorCode,
java.lang.String message) |
protected |
CarrierException(int errorCode,
java.lang.String message,
java.lang.Throwable cause) |
protected |
CarrierException(int errorCode,
java.lang.Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
static CarrierException |
fromErrorCode(int errorCode) |
static CarrierException |
fromErrorCode(int errorCode,
java.lang.String message) |
static CarrierException |
fromErrorCode(int errorCode,
java.lang.String message,
java.lang.Throwable cause) |
static CarrierException |
fromErrorCode(int errorCode,
java.lang.Throwable cause) |
int |
getCode() |
int |
getErrorCode() |
abstract int |
getFacility() |
java.lang.String |
getMessage() |
public static final int FACILITY_GENERAL
public static final int FACILITY_SYSTEM
public static final int FACILITY_RESERVED1
public static final int FACILITY_RESERVED2
public static final int FACILITY_ICE
public static final int FACILITY_DHT
protected CarrierException(int errorCode)
protected CarrierException(int errorCode,
java.lang.String message)
protected CarrierException(int errorCode,
java.lang.String message,
java.lang.Throwable cause)
protected CarrierException(int errorCode,
java.lang.Throwable cause)
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic abstract int getFacility()
public int getCode()
public int getErrorCode()
public static CarrierException fromErrorCode(int errorCode, java.lang.String message, java.lang.Throwable cause)
public static CarrierException fromErrorCode(int errorCode, java.lang.String message)
public static CarrierException fromErrorCode(int errorCode, java.lang.Throwable cause)
public static CarrierException fromErrorCode(int errorCode)