|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.platform.ego.exception.EGOException
public class EGOException
Signals that an EGO exception has occurred. This class is the general class of exceptions produced by failed or interrupted EGO operations.
Field Summary | |
---|---|
protected java.lang.String |
area
|
protected java.lang.Object[] |
args
|
protected int |
errorCode
|
protected java.lang.String |
errorMessage
|
protected java.lang.String |
funName
|
protected java.lang.Throwable |
rootCause
|
Constructor Summary | |
---|---|
EGOException()
Construct a blank instance. |
|
EGOException(int errorCode)
Construct an instance using a given error code. |
|
EGOException(int errorCode,
java.lang.String message)
Construct an instance using a given message and error code. |
|
EGOException(int errorCode,
java.lang.String message,
java.lang.Object[] args)
Construct an instance using a given message, error code and arguments. |
|
EGOException(int errorCode,
java.lang.String message,
java.lang.Object[] args,
java.lang.Throwable rootCause)
Construct an instance using a given message, code of error, arguments and nested exception. |
|
EGOException(int errorCode,
java.lang.String message,
java.lang.Throwable rootCause)
Construct an instance using error code, a given message and nested exception. |
|
EGOException(int errorCode,
java.lang.Throwable rootCause)
Construct an instance by a given message and nested exception. |
|
EGOException(java.lang.String area,
int errorCode,
java.lang.String message)
Construct an instance area of function, using error code and a given message. |
|
EGOException(java.lang.String area,
int errorCode,
java.lang.String message,
java.lang.Throwable rootCause)
Construct an instance area of function, using error code, a given message and nested exception. |
|
EGOException(java.lang.String message,
java.lang.Throwable rootCause)
Construct an instance using a given message and nested exception. |
|
EGOException(java.lang.Throwable rootCause)
Construct an instance by a root cause of this exception. |
Method Summary | |
---|---|
java.lang.String |
getArea()
Get area of function that produces the error. |
java.lang.Object[] |
getArgs()
Get arguments used to bundle message from resource file. |
int |
getErrorCode()
Get error code. |
java.lang.Throwable |
getRootCause()
Get root cause of the exception. |
void |
printStackTrace()
|
void |
printStackTrace(java.io.PrintStream outStream)
|
void |
printStackTrace(java.io.PrintWriter writer)
|
void |
setArea(java.lang.String area)
Set area of function that produces the error. |
void |
setArgs(java.lang.Object[] args)
Set message arguments used to bundle message from resource file. |
void |
setErrorCode(int key)
Set error code. |
void |
setRootCause(java.lang.Throwable anException)
Set root cause of the exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.Throwable rootCause
protected java.lang.String funName
protected java.lang.String area
protected java.lang.String errorMessage
protected int errorCode
protected java.lang.Object[] args
Constructor Detail |
---|
public EGOException()
public EGOException(int errorCode)
errorCode
- : specify error code.public EGOException(int errorCode, java.lang.String message)
errorCode
- : specify error code.message
- : specify an exception message.public EGOException(int errorCode, java.lang.String message, java.lang.Object[] args)
errorCode
- : specify error code.message
- : specify an exception message.args
- : specify arguments used to bundle resources.public EGOException(int errorCode, java.lang.String message, java.lang.Object[] args, java.lang.Throwable rootCause)
errorCode
- : specify error code.message
- : specify an exception message.args
- : specify arguments used to bundle resources.rootCause
- : specify nested exception.public EGOException(java.lang.String message, java.lang.Throwable rootCause)
message
- : specify an exception message.rootCause
- : specify nested exception.public EGOException(int errorCode, java.lang.String message, java.lang.Throwable rootCause)
errorCode
- : specify error code.message
- : specify an exception message.rootCause
- : specify nested exception.public EGOException(java.lang.String area, int errorCode, java.lang.String message, java.lang.Throwable rootCause)
area
- : specify area of function.errorCode
- : specify error code.message
- : specify an exception message.rootCause
- : specify nested exception.public EGOException(java.lang.String area, int errorCode, java.lang.String message)
area
- : specify area of function.errorCode
- : specify error code.message
- : specify an exception message.public EGOException(int errorCode, java.lang.Throwable rootCause)
errorCode
- : specify error code.rootCause
- : Specify nested exception.public EGOException(java.lang.Throwable rootCause)
rootCause
- : specify the root cause of this exception.Method Detail |
---|
public void setErrorCode(int key)
key
- : specify error code.public int getErrorCode()
public void setArgs(java.lang.Object[] args)
args
- : specify arguments array to be set.public java.lang.Object[] getArgs()
public void setRootCause(java.lang.Throwable anException)
anException
- root cause to be set.public java.lang.Throwable getRootCause()
public java.lang.String getArea()
public void setArea(java.lang.String area)
area
- : specify area of function.public void printStackTrace()
printStackTrace
in class java.lang.Throwable
Throwable.printStackTrace()
public void printStackTrace(java.io.PrintStream outStream)
printStackTrace
in class java.lang.Throwable
Throwable.printStackTrace(java.io.PrintStream)
public void printStackTrace(java.io.PrintWriter writer)
printStackTrace
in class java.lang.Throwable
Throwable.printStackTrace(java.io.PrintWriter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |