Package com.uwyn.jhighlight.pcj.util
Class Exceptions
java.lang.Object
com.uwyn.jhighlight.pcj.util.Exceptions
This class provides static methods for throwing exceptions.
It is only provided as a utility class for the collection
implementations and is not a part of the API.
- Version:
- 1.0 21-08-2003 18:44
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcannotAdapt(String name) static voidcannotMergeRanges(Object r1, Object r2) static voidcloning()static voidstatic voidstatic voidstatic voidstatic voidstatic voidindexOutOfBounds(int index, int low, int high) static voidinvalidLowerBound(Object value) static voidinvalidRangeBounds(Object first, Object last) static voidinvalidSetBounds(Object low, Object high) static voidinvalidUpperBound(Object value) static voidnegativeArgument(String name, Object value) static voidnegativeOrZeroArgument(String name, Object value) static voidstatic voidstatic voidstatic voidstatic voidnoSuchMapping(Object key) static voidnullArgument(String name) static voidstatic voidstatic voidstatic voidstatic voidunmodifiable(String name) static voidunsupported(String name) static voidvalueNotInSubRange(Object value)
-
Constructor Details
-
Exceptions
public Exceptions()
-
-
Method Details
-
indexOutOfBounds
- Throws:
IndexOutOfBoundsException
-
nullArgument
- Throws:
NullPointerException
-
negativeArgument
- Throws:
IllegalArgumentException
-
negativeOrZeroArgument
public static void negativeOrZeroArgument(String name, Object value) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
endOfIterator
- Throws:
NoSuchElementException
-
startOfIterator
- Throws:
NoSuchElementException
-
noElementToRemove
- Throws:
IllegalStateException
-
noElementToGet
- Throws:
IllegalStateException
-
noElementToSet
- Throws:
IllegalStateException
-
noLastElement
- Throws:
IllegalStateException
-
noSuchMapping
- Throws:
NoSuchMappingException
-
dequeNoFirst
- Throws:
IndexOutOfBoundsException
-
dequeNoLast
- Throws:
IndexOutOfBoundsException
-
dequeNoFirstToRemove
- Throws:
IndexOutOfBoundsException
-
dequeNoLastToRemove
- Throws:
IndexOutOfBoundsException
-
nullElementNotAllowed
- Throws:
IllegalArgumentException
-
cannotAdapt
- Throws:
IllegalStateException
-
unsupported
- Throws:
UnsupportedOperationException
-
unmodifiable
- Throws:
UnsupportedOperationException
-
cloning
- Throws:
RuntimeException
-
invalidRangeBounds
- Throws:
IllegalArgumentException
-
cannotMergeRanges
- Throws:
IllegalArgumentException
-
setNoFirst
- Throws:
NoSuchElementException
-
setNoLast
- Throws:
NoSuchElementException
-
invalidSetBounds
- Throws:
IllegalArgumentException
-
valueNotInSubRange
- Throws:
IllegalArgumentException
-
invalidUpperBound
- Throws:
IllegalArgumentException
-
invalidLowerBound
- Throws:
IllegalArgumentException
-