com.konakartadmin.app
Class KKAdminException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.konakartadmin.app.KKAdminException
All Implemented Interfaces:
java.io.Serializable

public class KKAdminException
extends java.lang.Exception

An exception in the Admin App

See Also:
Serialized Form

Field Summary
 int code
          A code that can be used to indicate the type of exception
static int CUSTOMER_NOT_FOUND
          Customer Not Found exception code
private static java.lang.String EXCEPTION_MSG
           
static int INVALID_SESSION
          Store deleted exception code - multi-store only
private static long serialVersionUID
           
 
Constructor Summary
KKAdminException()
           
KKAdminException(java.lang.String msg)
           
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.
 
Method Summary
 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
 void setCode(int code)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

INVALID_SESSION

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

See Also:
Constant Field Values

CUSTOMER_NOT_FOUND

public static final int CUSTOMER_NOT_FOUND
Customer Not Found exception code

See Also:
Constant Field Values

EXCEPTION_MSG

private static final java.lang.String EXCEPTION_MSG
See Also:
Constant Field Values

code

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

Constructor Detail

KKAdminException

public KKAdminException()

KKAdminException

public KKAdminException(java.lang.String msg)
Parameters:
msg -

KKAdminException

public KKAdminException(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.

KKAdminException

public KKAdminException(java.lang.String msg,
                        java.lang.Throwable nested)
Constructs a new KKAdminException 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

getExceptionMessage

private static java.lang.String getExceptionMessage(java.lang.String msg)
Returns a string containing the msg with the version number appended (but only once)

Parameters:
msg -
Returns:
Returns a string containing the stack trace

getExceptionMessage

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

Parameters:
e -
Returns:
Returns a string containing the stack trace

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.