public class KKAdminException
extends java.lang.Exception
| Modifier and Type | Field and Description |
|---|---|
static int |
API_ERROR
Unknown API error exception code
|
int |
code
A code that can be used to indicate the type of exception
|
static int |
CUSTOMER_NOT_FOUND
Customer Not Found exception code
|
static java.lang.String |
EXCEPTION_MSG
If this text is changed, you need to edit
com.konakartadmin.client.util.KKExceptionDialog.java since it searches for this text to show
the exception message in the dialog box
|
boolean |
hideMoreDetails
Can be used to hide the "More Details" button on the Exception warning dialogue inside the
Admin App.
|
static int |
INVALID_SESSION
Store deleted exception code - multi-store only
|
static int |
KK_PASSWORD_EXPIRED
User's password has expired
|
java.lang.String |
msgKey
A key for a message that can be used to Internationalize the exception message.
|
private static long |
serialVersionUID |
| Constructor and Description |
|---|
KKAdminException()
KKAdminException
|
KKAdminException(java.lang.String msg) |
KKAdminException(java.lang.String msg,
boolean hideMoreDetails) |
KKAdminException(java.lang.String msg,
java.lang.String key) |
KKAdminException(java.lang.String msg,
java.lang.String key,
boolean hideMoreDetails) |
KKAdminException(java.lang.String msg,
java.lang.String key,
java.lang.Throwable nested)
Constructs a new
KKAdminException with specified detail message and nested
Throwable. |
KKAdminException(java.lang.String msg,
java.lang.Throwable nested)
Constructs a new
KKAdminException with specified detail message and nested
Throwable. |
KKAdminException(java.lang.Throwable nested)
Constructs a new
KKException with specified nested Throwable. |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
private static java.lang.String |
getExceptionMessage(java.lang.String msg)
Returns a string containing the msg with the version number appended (but only once)
|
private static java.lang.String |
getExceptionMessage(java.lang.String msg,
java.lang.Throwable e)
Returns a string containing the stack trace of the exception and its cause
|
static java.lang.String |
getExceptionMessagePrefic()
Returns the standard Exception Msg prefix
|
java.lang.String |
getMsgKey() |
boolean |
isHideMoreDetails() |
void |
setCode(int code) |
void |
setHideMoreDetails(boolean hideMoreDetails) |
void |
setMsgKey(java.lang.String msgKey) |
private static final long serialVersionUID
public static final int KK_PASSWORD_EXPIRED
public static final int INVALID_SESSION
public static final int CUSTOMER_NOT_FOUND
public static final int API_ERROR
public static final java.lang.String EXCEPTION_MSG
public int code
public java.lang.String msgKey
public boolean hideMoreDetails
public KKAdminException()
public KKAdminException(java.lang.String msg)
msg - the msgpublic KKAdminException(java.lang.String msg,
java.lang.String key)
msg - the exception message in the default languagekey - message catalog keypublic KKAdminException(java.lang.String msg,
java.lang.String key,
boolean hideMoreDetails)
msg - the exception message in the default languagekey - message catalog keyhideMoreDetails - set to true to hide the "More Details" button on the Exception warning dialogue
inside the Admin Apppublic KKAdminException(java.lang.String msg,
boolean hideMoreDetails)
msg - the message for the exceptionhideMoreDetails - set to true to hide the "More Details" button on the Exception warning dialogue
inside the Admin Apppublic KKAdminException(java.lang.Throwable nested)
KKException with specified nested Throwable.nested - the exception or error that caused this exception to be thrown.public KKAdminException(java.lang.String msg,
java.lang.Throwable nested)
KKAdminException with specified detail message and nested
Throwable.msg - the error message.nested - the exception or error that caused this exception to be thrown.public KKAdminException(java.lang.String msg,
java.lang.String key,
java.lang.Throwable nested)
KKAdminException with specified detail message and nested
Throwable.msg - the error message.key - message catalog keynested - the exception or error that caused this
exception to be thrown.public static java.lang.String getExceptionMessagePrefic()
private static java.lang.String getExceptionMessage(java.lang.String msg)
msg - the message for the exceptionprivate static java.lang.String getExceptionMessage(java.lang.String msg,
java.lang.Throwable e)
msg - the message for the exceptione - the exceptionpublic int getCode()
public void setCode(int code)
code - the code to setpublic boolean isHideMoreDetails()
public void setHideMoreDetails(boolean hideMoreDetails)
hideMoreDetails - the hideMoreDetails to setpublic java.lang.String getMsgKey()
public void setMsgKey(java.lang.String msgKey)
msgKey - the msgKey to setCopyright © 2018 DS Data Systems UK Ltd.