[Nodal-j-devel] New exceptions
Status: Pre-Alpha
Brought to you by:
leei
From: Lee I. <le...@ec...> - 2002-07-11 17:56:59
|
I've modified org.nodal.util.ConstraintFailure so that it has two different subtypes which define two different failures: o TypeConstraintFailure is thrown when some element fails a Type check: - throw new TypeConstraintFailure (item, itemType, "invalid Sequence item"); o IndexBoundsException is thrown when a Sequence index is out of bounds: - throw new IndexBoundsException (i, -sz, sz-1, "index out of bounds"); I've also fixed up all of the appropriate calls. N.B. These may lead to conflicts in memGenericSequenceContent.java -- ------------------------------------------------------------------------------- Lee Iverson le...@ec... Dept of ECE, 2356 Main Mall http://www.ai.sri.com/~leei/ Vancouver BC Canada V6T 1Z4 Office: (604) 822-3381 |