com.hcarralero.toljava
Class TOLMachineException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.hcarralero.toljava.TOLMachineException
All Implemented Interfaces:
java.io.Serializable

public class TOLMachineException
extends java.lang.Exception

Representa una condición de error ocurrida durante el acceso a un objeto de tipo TOLMachine.

See Also:
Serialized Form

Field Summary
static int ERROR_INTERNAL_JVM_ERROR
          ERROR: Fallo Interno de la Máquina Virtual de Java.
static int ERROR_INTERNAL_TOL_ERROR
          ERROR: Fallo Interno de TOL.
static int ERROR_INVALID_DATE
          ERROR: Fecha NO VÁLIDA para una Serie o TimeSet.
static int ERROR_INVALID_INDEX
          ERROR: Índice NO VÁLIDO para una Serie o TimeSet.
static int ERROR_INVALID_PARAMETER
          ERROR: Parámetro NO VÁLIDO en llamada a Función.
static int ERROR_MISMATCH_DATATYPES
          ERROR: Tipos de datos NO COINCIDEN.
static int ERROR_VARIABLE_NOT_FOUND
          ERROR: Variable NO ENCONTRADA.
static int NO_ERROR
          No ha ocurrido ningún error (¡IMPOSIBLE!).
 
Constructor Summary
TOLMachineException(int errorCode, java.lang.String msg)
          Construye una instancia de TOLMachineException con el código y mensaje de error especificados.
 
Method Summary
 int getErrorCode()
          Retorna el código del error que provocó que se lanzara la excepción.
 
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

NO_ERROR

public static final int NO_ERROR
No ha ocurrido ningún error (¡IMPOSIBLE!).

See Also:
Constant Field Values

ERROR_INTERNAL_JVM_ERROR

public static final int ERROR_INTERNAL_JVM_ERROR
ERROR: Fallo Interno de la Máquina Virtual de Java.

See Also:
Constant Field Values

ERROR_VARIABLE_NOT_FOUND

public static final int ERROR_VARIABLE_NOT_FOUND
ERROR: Variable NO ENCONTRADA.

See Also:
Constant Field Values

ERROR_MISMATCH_DATATYPES

public static final int ERROR_MISMATCH_DATATYPES
ERROR: Tipos de datos NO COINCIDEN.

See Also:
Constant Field Values

ERROR_INTERNAL_TOL_ERROR

public static final int ERROR_INTERNAL_TOL_ERROR
ERROR: Fallo Interno de TOL.

See Also:
Constant Field Values

ERROR_INVALID_PARAMETER

public static final int ERROR_INVALID_PARAMETER
ERROR: Parámetro NO VÁLIDO en llamada a Función.

See Also:
Constant Field Values

ERROR_INVALID_DATE

public static final int ERROR_INVALID_DATE
ERROR: Fecha NO VÁLIDA para una Serie o TimeSet.

See Also:
Constant Field Values

ERROR_INVALID_INDEX

public static final int ERROR_INVALID_INDEX
ERROR: Índice NO VÁLIDO para una Serie o TimeSet.

See Also:
Constant Field Values
Constructor Detail

TOLMachineException

public TOLMachineException(int errorCode,
                           java.lang.String msg)
Construye una instancia de TOLMachineException con el código y mensaje de error especificados.

Parameters:
errorCode - Código del error que provocó que se lanzara la excepción.
msg - mensaje describiendo el error que provocó que se lanzara la excepción.
Method Detail

getErrorCode

public int getErrorCode()
Retorna el código del error que provocó que se lanzara la excepción.

Returns:
el código del error.