edu.umd.cfar.lamp.viper.util
Class MatrixIndexOutOfBoundsException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjava.lang.IndexOutOfBoundsException
                  extended byedu.umd.cfar.lamp.viper.util.MatrixIndexOutOfBoundsException
All Implemented Interfaces:
java.io.Serializable

public class MatrixIndexOutOfBoundsException
extends java.lang.IndexOutOfBoundsException

Thrown by DataMatrix2d objects when attempting to access data with a negative index or above the specified boundaries.

Author:
David Mihalcik
See Also:
DataMatrix2d, Serialized Form

Constructor Summary
MatrixIndexOutOfBoundsException()
          Constructs a new MatrixIndexOutOfBoundsException with no error message.
MatrixIndexOutOfBoundsException(int column, int row)
          Constructs a new MatrixIndexOutOfBoundsException at the specified index.
MatrixIndexOutOfBoundsException(java.awt.Point p)
          Constructs a new MatrixIndexOutOfBoundsException with an argument indicating the illegal index.
MatrixIndexOutOfBoundsException(java.lang.String s)
          Constructs a new MatrixIndexOutOfBoundsException with the specified message.
 
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
 

Constructor Detail

MatrixIndexOutOfBoundsException

public MatrixIndexOutOfBoundsException()
Constructs a new MatrixIndexOutOfBoundsException with no error message.


MatrixIndexOutOfBoundsException

public MatrixIndexOutOfBoundsException(java.lang.String s)
Constructs a new MatrixIndexOutOfBoundsException with the specified message.

Parameters:
s - The detail message.

MatrixIndexOutOfBoundsException

public MatrixIndexOutOfBoundsException(java.awt.Point p)
Constructs a new MatrixIndexOutOfBoundsException with an argument indicating the illegal index.

Parameters:
p - The x and y position of the error.

MatrixIndexOutOfBoundsException

public MatrixIndexOutOfBoundsException(int column,
                                       int row)
Constructs a new MatrixIndexOutOfBoundsException at the specified index.

Parameters:
column - The column that was attempted to be accessed.
row - The row that was attempted to be accessed.