public class OrderProcessException
extends java.lang.Exception
Constructor and Description |
---|
OrderProcessException(OrderProcessExceptionType type)
Constructs a new exception with the specified exception type.
|
OrderProcessException(OrderProcessExceptionType type,
java.lang.Throwable cause)
Constructs a new exception with the specified exception type and cause.
|
OrderProcessException(java.lang.String message,
OrderProcessExceptionType type)
Constructs a new exception with the specified detail message and
exception type.
|
OrderProcessException(java.lang.String message,
OrderProcessExceptionType type,
java.lang.Throwable cause)
Constructs a new exception with the specified detail message, the
exception type and cause.
|
Modifier and Type | Method and Description |
---|---|
OrderProcessExceptionType |
getType()
Returns the type of the exception
|
public OrderProcessException(OrderProcessExceptionType type)
OrderProcessExceptionType.getDetailMsg()
. The cause is not
Initialised, and may subsequently be initialised by a call to
Throwable.initCause(java.lang.Throwable)
.type
- the exception type. The exception type is saved for later
retrieval by the getType()
method.public OrderProcessException(OrderProcessExceptionType type, java.lang.Throwable cause)
Note that the detail message is set to
OrderProcessExceptionType.getDetailMsg()
.
type
- the exception type. The exception type is saved for later
retrieval by the getType()
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 OrderProcessException(java.lang.String message, OrderProcessExceptionType type)
Throwable.initCause(java.lang.Throwable)
.message
- the detail message (which is saved for later retrieval by the
Throwable.getMessage()
method).type
- the exception type. The exception type is saved for later
retrieval by the getType()
method.public OrderProcessException(java.lang.String message, OrderProcessExceptionType type, java.lang.Throwable cause)
Note that the detail message associated with cause
is not
automatically incorporated in this exception's detail message.
message
- the detail message (which is saved for later retrieval by the
Throwable.getMessage()
method).type
- the exception type. The exception type is saved for later
retrieval by the getType()
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 OrderProcessExceptionType getType()