cz.zcu.fav.kiv.jsim
Class JSimException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--cz.zcu.fav.kiv.jsim.JSimException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- JSimInvalidContextException, JSimInvalidParametersException, JSimInvalidProcessStateException, JSimMethodNotSupportedException, JSimSecurityException, JSimSimulationAlreadyTerminatedException, JSimTooManyHeadsException, JSimTooManyProcessesException, JSimTooManySemaphoresException
- public class JSimException
- extends java.lang.Exception
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.
- Since:
- J-Sim version 0.0.1
- Version:
- J-Sim version 0.3.0
- Author:
- Jarda KAČER
- See Also:
- Serialized Form
Field Summary |
private java.lang.String |
specific
Specific message for every exception. |
Fields inherited from class java.lang.Exception |
|
Fields inherited from class java.lang.Throwable |
|
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. |
Method Summary |
java.lang.String |
getSpecificInfo()
Returns detailed information about specific circumstances of the exception. |
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 |
specific
private java.lang.String specific
- Specific message for every exception.
JSimException
public JSimException(java.lang.String description,
java.lang.String param)
- Creates a new JSimException with a description and a specific information. Descendants will use this
constructor to pass their own data to the Exception constructor.
- Parameters:
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.
JSimException
public JSimException(java.lang.String param)
- Creates a new JSimException with the default description and a specific information.
- Parameters:
param
- Holds detailed information about specific circumstances of this exception,
for example a method's or a variable's name.
printComment
public void printComment(java.io.PrintStream ps)
- Prints an explanation why this exception was thrown. The explanation is printed out to a print stream.
- Parameters:
ps
- The print stream that the explanation is to be printed to.
getSpecificInfo
public java.lang.String getSpecificInfo()
- Returns detailed information about specific circumstances of the exception.
- Returns:
- Detailed information about specific circumstances of the exception.
Copyright © 2000-2004 University of West Bohemia, FAV-KIV. All Rights Reserved. Build date 20040510.