public class ATKException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
static int |
ERROR |
static int |
PANIC |
static java.lang.String[] |
severity |
static int |
WARNING |
Constructor and Description |
---|
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.
|
ATKException(java.lang.String s,
fr.esrf.Tango.DevError[] errs)
Constructs an ATK exception from a Tango DevErros error stack with a message.
|
Modifier and Type | Method and Description |
---|---|
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() |
public static java.lang.String[] severity
public static final int WARNING
public static final int ERROR
public static final int PANIC
public ATKException()
public ATKException(java.lang.String s)
s
- Exception message.public ATKException(fr.esrf.Tango.DevFailed e)
e
- Tango exceptionpublic ATKException(java.lang.String s, fr.esrf.Tango.DevError[] errs)
e
- Tango exceptionpublic ATKException(java.lang.Exception e)
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.Throwable
public int getSeverity()
public int getSeverity(int i)
public 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.Throwable
public java.lang.String getVersion()