cz.zcu.fav.kiv.jsim
Class JSimException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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.6.0
Author:
Jarda KAČER
See Also:
Serialized Form

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

serialVersionUID

private static final long serialVersionUID
Serialization identification.

See Also:
Constant Field Values

specific

private java.lang.String specific
Specific message for every exception.

Constructor Detail

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.

JSimException

public 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. 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.
cause - The original exception that caused this exception to be thrown.

JSimException

public 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.

Parameters:
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

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.

printComment

public void printComment()
Prints an explanation why this exception was thrown. The explanation is printed out to standard error output.


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-2006 University of West Bohemia. Licensed under the Academic Free License v. 2.1. Build date 20060812.