|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
fr.esrf.tangoatk.core.ATKException
public class ATKException
A base class to handle error in ATK.
| Field Summary | |
|---|---|
static int |
ERROR
|
static int |
PANIC
|
static java.lang.String[] |
severity
|
static int |
WARNING
|
| Constructor Summary | |
|---|---|
ATKException()
Constructs an empty ATK exception. |
|
ATKException(fr.esrf.Tango.DevFailed e)
Constructs an ATK exception from a Tango DevFailed exception. |
|
ATKException(java.lang.Exception e)
|
|
ATKException(java.lang.String s)
Constructs an ATK exception containing a single message. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Returns the description at the top level of the stack or the message if no stack is present. |
java.lang.String |
getDescription(int i)
Returns the description at the specified level of the stack. |
fr.esrf.Tango.DevError[] |
getErrors()
Returns the error stack. |
java.lang.String |
getMessage()
Returns the Exception message. |
java.lang.String |
getOrigin()
Returns the origin at the top level of the stack. |
java.lang.String |
getOrigin(int i)
Returns the origin at the specified level of the stack. |
java.lang.String |
getReason()
Returns the reason at the top level of the stack. |
java.lang.String |
getReason(int i)
Returns the reason at the specified level of the stack. |
int |
getSeverity()
Returns the severity of this exception. |
int |
getSeverity(int i)
Gets the sevrity at the given stack level of this exception. |
java.lang.String |
getSourceName()
Get the class name of the source exception. |
int |
getStackLength()
Returns the tango stack length. |
java.lang.String |
getVersion()
|
void |
setError(fr.esrf.Tango.DevFailed e)
Apply the given Tango DevFailed exception to this exception. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String[] severity
public static final int WARNING
public static final int ERROR
public static final int PANIC
| Constructor Detail |
|---|
public ATKException()
public ATKException(java.lang.String s)
s - Exception message.public ATKException(fr.esrf.Tango.DevFailed e)
e - Tango exceptionpublic ATKException(java.lang.Exception e)
| Method Detail |
|---|
public void setError(fr.esrf.Tango.DevFailed e)
e - Tango exceptionpublic fr.esrf.Tango.DevError[] getErrors()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic int getSeverity()
public int getSeverity(int i)
i - Stack levelWARNING,
ERROR,
PANICpublic java.lang.String getDescription()
public java.lang.String getDescription(int i)
i - Stack levelpublic java.lang.String getOrigin()
public java.lang.String getOrigin(int i)
i - Stack levelpublic java.lang.String getReason()
public java.lang.String getReason(int i)
i - Stack levelpublic int getStackLength()
public java.lang.String getSourceName()
public java.lang.String toString()
toString in class java.lang.Throwablepublic java.lang.String getVersion()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||