com.konakart.app
Class KKException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.commons.lang.exception.NestableException
              extended by com.konakart.app.KKException
All Implemented Interfaces:
java.io.Serializable, org.apache.commons.lang.exception.Nestable
Direct Known Subclasses:
KKInvalidZoneException, KKPasswordDoesntMatchException, KKUserDoesntExistException, KKUserExistsException

public class KKException
extends org.apache.commons.lang.exception.NestableException

KKException

See Also:
Serialized Form

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

KK_STORE_DELETED

public static final int KK_STORE_DELETED
Store deleted exception code - multi-store only

See Also:
Constant Field Values

KK_STORE_DISABLED

public static final int KK_STORE_DISABLED
Store disabled exception code - multi-store only

See Also:
Constant Field Values

KK_STORE_UNDER_MAINTENANCE

public static final int KK_STORE_UNDER_MAINTENANCE
Store under maintenance exception code - multi-store only

See Also:
Constant Field Values

KK_STORE_NOT_FOUND

public static final int KK_STORE_NOT_FOUND
Store not found exception code - multi-store only

See Also:
Constant Field Values

CUST_EMAIL_ADDR_NOT_FOUND

public static final int CUST_EMAIL_ADDR_NOT_FOUND
Cannot find customer with specified email address

See Also:
Constant Field Values

KK_PASSWORD_EXPIRED

public static final int KK_PASSWORD_EXPIRED
User's password has expired

See Also:
Constant Field Values

code

public int code
A code that can be used to indicate the type of exception

Constructor Detail

KKException

protected KKException()
Constructs a new KKException without specified detail message. We don't allow it for KKException. It is protected so that it can be inherited from sub classes.


KKException

public KKException(java.lang.String msg)
Constructs a new KKException with specified detail message.

Parameters:
msg - the error message.

KKException

public KKException(java.lang.Throwable nested)
Constructs a new KKException with specified nested Throwable.

Parameters:
nested - the exception or error that caused this exception to be thrown.

KKException

public KKException(java.lang.String msg,
                   java.lang.Throwable nested)
Constructs a new KKException with specified detail message and nested Throwable.

Parameters:
msg - the error message.
nested - the exception or error that caused this exception to be thrown.
Method Detail

getCode

public int getCode()
Returns:
the code

setCode

public void setCode(int code)
Parameters:
code - the code to set


Copyright © 2011 DS Data Systems UK Ltd.