tecgraf.javautils.parsers.exception
Class AutomatonException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by tecgraf.javautils.parsers.exception.AutomatonException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ErrorStateReachedException, InvalidStateException, NoTransitionException

public abstract class AutomatonException
extends Exception

Representa uma exceção do autômato finito ( FiniteAutomaton).

See Also:
Serialized Form

Constructor Summary
protected AutomatonException(Session session)
          Cria uma exceção com a sessão recebida.
protected AutomatonException(Session session, Throwable cause)
          Cria uma exceção com a sessão e causa recebidas.
 
Method Summary
 String toString()
          
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AutomatonException

protected AutomatonException(Session session)
Cria uma exceção com a sessão recebida.

Parameters:
session - A sessão de execução onde a exceção foi gerada.
Throws:
IllegalArgumentException - Caso a sessão seja nula.

AutomatonException

protected AutomatonException(Session session,
                             Throwable cause)
Cria uma exceção com a sessão e causa recebidas.

Parameters:
session - A sessão de execução onde a exceção foi gerada.
cause - A causa da exceção.
Method Detail

toString

public String toString()

Overrides:
toString in class Throwable


Copyright © 2014 Tecgraf/PUC-Rio. All rights reserved.