com.hcarralero.toljava
Class TOLMatrixException

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

public class TOLMatrixException
extends java.lang.Exception

Representa una condición de error ocurrida durante la manipulación de un objeto de tipo TOLMatrix o TOLVMatrix.

See Also:
Serialized Form

Field Summary
static int ERROR_INVALID_COLUMN_NUMBER
          ERROR: Se intenta acceder a un NÚMERO DE COLUMNA NO VÁLIDO (<0 o >número de columnas de la matriz).
static int ERROR_INVALID_COLUMNS
          ERROR: Número de columnas de la matriz NO ES VÁLIDO (<=0).
static int ERROR_INVALID_ROW_NUMBER
          ERROR: Se intenta acceder a un NÚMERO DE FILA NO VÁLIDO (<0 o >número de filas de la matriz).
static int ERROR_INVALID_ROWS
          ERROR: Número de filas de la matriz NO ES VÁLIDO (<=0).
static int ERROR_NOT_ENOUGH_MEMORY
          ERROR: No hay memoria suficiente para crear la matriz.
static int ERROR_NOT_EQUALS_ROWS
          ERROR: No todas las filas tienen igual cantidad de columnas.
static int NO_ERROR
          No ha ocurrido ningún error (¡IMPOSIBLE!).
 
Constructor Summary
TOLMatrixException(int errorCode, java.lang.String msg)
          Construye una instancia de TOLMatrixException 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_INVALID_ROWS

public static final int ERROR_INVALID_ROWS
ERROR: Número de filas de la matriz NO ES VÁLIDO (<=0).

See Also:
Constant Field Values

ERROR_INVALID_COLUMNS

public static final int ERROR_INVALID_COLUMNS
ERROR: Número de columnas de la matriz NO ES VÁLIDO (<=0).

See Also:
Constant Field Values

ERROR_INVALID_ROW_NUMBER

public static final int ERROR_INVALID_ROW_NUMBER
ERROR: Se intenta acceder a un NÚMERO DE FILA NO VÁLIDO (<0 o >número de filas de la matriz).

See Also:
Constant Field Values

ERROR_INVALID_COLUMN_NUMBER

public static final int ERROR_INVALID_COLUMN_NUMBER
ERROR: Se intenta acceder a un NÚMERO DE COLUMNA NO VÁLIDO (<0 o >número de columnas de la matriz).

See Also:
Constant Field Values

ERROR_NOT_ENOUGH_MEMORY

public static final int ERROR_NOT_ENOUGH_MEMORY
ERROR: No hay memoria suficiente para crear la matriz.

See Also:
Constant Field Values

ERROR_NOT_EQUALS_ROWS

public static final int ERROR_NOT_EQUALS_ROWS
ERROR: No todas las filas tienen igual cantidad de columnas.

See Also:
Constant Field Values
Constructor Detail

TOLMatrixException

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