|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
nl.uva.vlet.exception.VlException
public class VlException
Super class of all VL Exceptions.
The Class VlException provides more high-level information about the Exception which occured and hides the original System Exception.
This reduces the stack trace for example and provides the end-user (or application programmer) a better descriptive error message then the low level System Exception (which might be unknown to the application programmer).
Example of Usage:
thrown new VlException("Unknown Exception.");
thrown new VlException(ReadAccesDeniedException);
thrown new VlException(ReadAccesDeniedException,"File has wrong group permissions.");
thrown new VlException(ReadAccesDeniedException,"Message txt",e);
Field Summary | |
---|---|
protected java.lang.String |
name
Human Readable Name of the Exception |
Constructor Summary | |
---|---|
protected |
VlException()
Default contructor. |
|
VlException(java.lang.String name)
Most basic implementation of the VlException. |
|
VlException(java.lang.String name,
java.lang.String message)
Public constructor to split name of exception and the exception message. |
|
VlException(java.lang.String name,
java.lang.String message,
java.lang.Throwable cause)
Public constructor to split name of exception and the exception message. |
|
VlException(java.lang.String name,
java.lang.Throwable cause)
Public constructor which holds original system exception. |
|
VlException(java.lang.Throwable cause)
Default contructor which holds system exception. |
Method Summary | |
---|---|
static java.lang.String |
getChainedStackTraceText(java.lang.Exception e)
Return the stacktrace, including nested Exceptions ! as single String |
java.lang.String |
getName()
Returns Name of VlException. |
static VlException |
newChainedException(java.lang.Exception e)
|
java.lang.String |
toString()
For printing purposes. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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 |
---|
protected java.lang.String name
Constructor Detail |
---|
protected VlException()
public VlException(java.lang.Throwable cause)
public VlException(java.lang.String name)
public VlException(java.lang.String name, java.lang.Throwable cause)
public VlException(java.lang.String name, java.lang.String message)
public VlException(java.lang.String name, java.lang.String message, java.lang.Throwable cause)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Throwable
public java.lang.String getName()
public static java.lang.String getChainedStackTraceText(java.lang.Exception e)
public static VlException newChainedException(java.lang.Exception e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |