home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 21 / IOPROG_21.ISO / SOFT / JSL.ZIP / JSL20 / simula / SimulaException.java < prev   
Encoding:
Java Source  |  1998-02-20  |  1.4 KB  |  27 lines

  1.  
  2. package simula;
  3.  
  4. /**
  5.  * The class SimulaException is fired whenever the code is unable to continue its work,
  6.  * due either to standard java errors or to conceptual errors regarding simula.
  7.  */
  8. public class SimulaException extends Exception
  9. {
  10.     public static final String NO_CURRENT_PROCESS = "There is no current process.";
  11.     public static final String PASSIVE_PROCESS = "A passive process has no scheduling time.";
  12.     public static final String TERMINATED_PROCESS = "A terminated process has no scheduling time.";
  13.     public static final String ACTIVATE_SCHEDULED = "Cannot activate a process that is already scheduled. Use 'reactivate'.";
  14.     public static final String LINK_TO_NULL = "Cannot link to a null element.";
  15.     public static final String PAST_TIME = "Cannot activate a process in the past or at current time. Use PRIOR clause with a future time.";
  16.     public static final String ABNORMAL_INPUT = "Cannot parse the input correctly.";
  17.     public static final String IO_EXCEPTION = "Cannot read an Int.";
  18.     public static final String FIELD_TOO_SHORT = "The field lenght of an output was too short.";
  19.     public static final String SENSELESS_PARAMETERS = "Meaningless parameters were provided.";
  20.     public static final String MAIN_PASSIVATED = "Cannot passivate the simulation main process.";
  21.     public static final String IDLE_PROCESS = "Cannot schedule before or after a passive process.";
  22.  
  23.  
  24.     public SimulaException(String error) {
  25.         super(error);
  26.     }
  27. }