SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.vector.doubles
Class IsVector.VectorAccessException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.numericalmethod.suanshu.vector.doubles.IsVector.VectorAccessException
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
IsVector

public static class IsVector.VectorAccessException
extends java.lang.RuntimeException

This is the exception thrown when any invalid access to a Vector instance is detected. For example, out-of-range index or write to an immutable instance.

See Also:
Serialized Form

Constructor Summary
IsVector.VectorAccessException(int size, int index)
          Construct an instance of VectorAccessException for out-of-range access.
IsVector.VectorAccessException(java.lang.String msg)
          Construct an instance of VectorAccessException.
 
Method Summary
 
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

IsVector.VectorAccessException

public IsVector.VectorAccessException(int size,
                                      int index)
Construct an instance of VectorAccessException for out-of-range access.

Parameters:
size - the vector size
index - the out-of-range index

IsVector.VectorAccessException

public IsVector.VectorAccessException(java.lang.String msg)
Construct an instance of VectorAccessException.

Parameters:
msg - the error message

SuanShu, a Java numerical and statistical library

Copyright © 2012 Numerical Method Inc. Ltd. All Rights Reserved.