|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
cz.zcu.fav.kiv.jsim.JSimException
public class JSimException
The JSimException class is a general exception used by J-Sim to inform user about an error. Unlike its subclasses, it is almost never instantiated. You should never need to create an instance of this class.
Field Summary | |
---|---|
private static long |
serialVersionUID
Serialization identification. |
private java.lang.String |
specific
Specific message for every exception. |
Constructor Summary | |
---|---|
JSimException(java.lang.String param)
Creates a new JSimException with the default description and a specific information. |
|
JSimException(java.lang.String description,
java.lang.String param)
Creates a new JSimException with a description and a specific information. |
|
JSimException(java.lang.String description,
java.lang.String param,
java.lang.Throwable cause)
Creates a new JSimException with a description, a specific information, and the cause of this exception. |
|
JSimException(java.lang.String param,
java.lang.Throwable cause)
Creates a new JSimException with the default description, a specific information, and the cause of this exception. |
Method Summary | |
---|---|
java.lang.String |
getSpecificInfo()
Returns detailed information about specific circumstances of the exception. |
void |
printComment()
Prints an explanation why this exception was thrown. |
void |
printComment(java.io.PrintStream ps)
Prints an explanation why this exception was thrown. |
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 |
---|
private static final long serialVersionUID
private java.lang.String specific
Constructor Detail |
---|
public JSimException(java.lang.String description, java.lang.String param)
description
- Describes the error that occured.param
- Holds detailed information about specific circumstances of this exception, for example a method's or a variable's name.public JSimException(java.lang.String param)
param
- Holds detailed information about specific circumstances of this exception, for example a method's or a variable's name.public JSimException(java.lang.String description, java.lang.String param, java.lang.Throwable cause)
description
- Describes the error that occured.param
- Holds detailed information about specific circumstances of this exception, for example a method's or a variable's name.cause
- The original exception that caused this exception to be thrown.public JSimException(java.lang.String param, java.lang.Throwable cause)
param
- Holds detailed information about specific circumstances of this exception, for example a method's or a variable's name.cause
- The original exception that caused this exception to be thrown.Method Detail |
---|
public void printComment(java.io.PrintStream ps)
ps
- The print stream that the explanation is to be printed to.public void printComment()
public java.lang.String getSpecificInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |