|
|||||||||
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 org.apache.commons.lang.exception.NestableException com.konakart.app.KKException
public class KKException
KKException
Field Summary | |
---|---|
int |
code
A code that can be used to indicate the type of exception |
static int |
CUST_EMAIL_ADDR_NOT_FOUND
Cannot find customer with specified email address |
static int |
KK_PASSWORD_EXPIRED
User's password has expired |
static int |
KK_STORE_DELETED
Store deleted exception code - multi-store only |
static int |
KK_STORE_DISABLED
Store disabled exception code - multi-store only |
static int |
KK_STORE_NOT_FOUND
Store not found exception code - multi-store only |
static int |
KK_STORE_UNDER_MAINTENANCE
Store under maintenance exception code - multi-store only |
Fields inherited from class org.apache.commons.lang.exception.NestableException |
---|
delegate |
Constructor Summary | |
---|---|
protected |
KKException()
Constructs a new KKException without specified detail message. |
|
KKException(java.lang.String msg)
Constructs a new KKException with specified detail message. |
|
KKException(java.lang.String msg,
java.lang.Throwable nested)
Constructs a new KKException with specified detail message and nested
Throwable . |
|
KKException(java.lang.Throwable nested)
Constructs a new KKException with specified nested Throwable . |
Method Summary | |
---|---|
int |
getCode()
|
void |
setCode(int code)
|
Methods inherited from class org.apache.commons.lang.exception.NestableException |
---|
getCause, getMessage, getMessage, getMessages, getThrowable, getThrowableCount, getThrowables, indexOfThrowable, indexOfThrowable, printPartialStackTrace, printStackTrace, printStackTrace, printStackTrace |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int KK_STORE_DELETED
public static final int KK_STORE_DISABLED
public static final int KK_STORE_UNDER_MAINTENANCE
public static final int KK_STORE_NOT_FOUND
public static final int CUST_EMAIL_ADDR_NOT_FOUND
public static final int KK_PASSWORD_EXPIRED
public int code
Constructor Detail |
---|
protected KKException()
KKException
without specified detail message. We don't allow
it for KKException. It is protected so that it can be inherited from sub classes.
public KKException(java.lang.String msg)
KKException
with specified detail message.
msg
- the error message.public KKException(java.lang.Throwable nested)
KKException
with specified nested Throwable
.
nested
- the exception or error that caused this exception to be thrown.public KKException(java.lang.String msg, java.lang.Throwable nested)
KKException
with specified detail message and nested
Throwable
.
msg
- the error message.nested
- the exception or error that caused this exception to be thrown.Method Detail |
---|
public int getCode()
public void setCode(int code)
code
- the code to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |