cz.zcu.fav.kiv.jsim
Class JSimInvalidContextException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycz.zcu.fav.kiv.jsim.JSimException
              extended bycz.zcu.fav.kiv.jsim.JSimInvalidContextException
All Implemented Interfaces:
java.io.Serializable

public class JSimInvalidContextException
extends JSimException

The JSimInvalidContextException is thrown whenever the user tries to call a method that cannot be invoked from the piece of code currently being executed. For example, a semaphore's P() operation can only be invoked from a process's code, not from outside a process. You should never need to create an instance of this class.

Since:
J-Sim version 0.3.0
Version:
J-Sim version 0.3.0
Author:
Jarda KAČER
See Also:
Serialized Form

Constructor Summary
JSimInvalidContextException(java.lang.String pars)
          Creates a new JSimInvalidContextException with specific information.
 
Method Summary
 void printComment(java.io.PrintStream ps)
          Prints an explanation why this exception was thrown.
 
Methods inherited from class cz.zcu.fav.kiv.jsim.JSimException
getSpecificInfo
 
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
 

Constructor Detail

JSimInvalidContextException

public JSimInvalidContextException(java.lang.String pars)
Creates a new JSimInvalidContextException with specific information.

Parameters:
pars - Holds detailed information about specific circumstances of this exception, for example a method's or a varibale's name.
Method Detail

printComment

public void printComment(java.io.PrintStream ps)
Description copied from class: JSimException
Prints an explanation why this exception was thrown. The explanation is printed out to a print stream.

Overrides:
printComment in class JSimException
Parameters:
ps - The print stream that the explanation is to be printed to.