com.hcarralero.toljava
Class TOLSetException

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

public class TOLSetException
extends java.lang.Exception

Representa una condición de error ocurrida durante la manipulación de un objeto de tipo TOLSet.

See Also:
Serialized Form

Field Summary
static int ERROR_INDEX_OUT_OF_BOUND
          ERROR: Se intenta acceder a un elemento con índice fuera de rango (<0 o mayor que la capacidad del conjunto)
static int ERROR_INTERNAL_JVM_ERROR
          ERROR: Error interno de JVM al realizar una operación
static int ERROR_NULL_OBJECT
          ERROR: Se intenta añadir un valor NULO al conjunto
static int NO_ERROR
          No ha ocurrido ningún error (¡IMPOSIBLE!)
 
Constructor Summary
TOLSetException(int errorCode, java.lang.String msg)
          Construye una instancia de TOLSetException 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_NULL_OBJECT

public static final int ERROR_NULL_OBJECT
ERROR: Se intenta añadir un valor NULO al conjunto

See Also:
Constant Field Values

ERROR_INTERNAL_JVM_ERROR

public static final int ERROR_INTERNAL_JVM_ERROR
ERROR: Error interno de JVM al realizar una operación

See Also:
Constant Field Values

ERROR_INDEX_OUT_OF_BOUND

public static final int ERROR_INDEX_OUT_OF_BOUND
ERROR: Se intenta acceder a un elemento con índice fuera de rango (<0 o mayor que la capacidad del conjunto)

See Also:
Constant Field Values
Constructor Detail

TOLSetException

public TOLSetException(int errorCode,
                       java.lang.String msg)
Construye una instancia de TOLSetException 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