public class Exceptions extends Object
| Constructor and Description |
|---|
Exceptions() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cannotAdapt(String name) |
static void |
cannotMergeRanges(Object r1,
Object r2) |
static void |
cloning() |
static void |
dequeNoFirst() |
static void |
dequeNoFirstToRemove() |
static void |
dequeNoLast() |
static void |
dequeNoLastToRemove() |
static void |
endOfIterator() |
static void |
indexOutOfBounds(int index,
int low,
int high) |
static void |
invalidLowerBound(Object value) |
static void |
invalidRangeBounds(Object first,
Object last) |
static void |
invalidSetBounds(Object low,
Object high) |
static void |
invalidUpperBound(Object value) |
static void |
negativeArgument(String name,
Object value) |
static void |
negativeOrZeroArgument(String name,
Object value) |
static void |
noElementToGet() |
static void |
noElementToRemove() |
static void |
noElementToSet() |
static void |
noLastElement() |
static void |
noSuchMapping(Object key) |
static void |
nullArgument(String name) |
static void |
nullElementNotAllowed() |
static void |
setNoFirst() |
static void |
setNoLast() |
static void |
startOfIterator() |
static void |
unmodifiable(String name) |
static void |
unsupported(String name) |
static void |
valueNotInSubRange(Object value) |
public static void indexOutOfBounds(int index,
int low,
int high)
throws IndexOutOfBoundsException
IndexOutOfBoundsExceptionpublic static void nullArgument(String name) throws NullPointerException
NullPointerExceptionpublic static void negativeArgument(String name, Object value) throws IllegalArgumentException
IllegalArgumentExceptionpublic static void negativeOrZeroArgument(String name, Object value) throws IllegalArgumentException
IllegalArgumentExceptionpublic static void endOfIterator()
throws NoSuchElementException
NoSuchElementExceptionpublic static void startOfIterator()
throws NoSuchElementException
NoSuchElementExceptionpublic static void noElementToRemove()
throws IllegalStateException
IllegalStateExceptionpublic static void noElementToGet()
throws IllegalStateException
IllegalStateExceptionpublic static void noElementToSet()
throws IllegalStateException
IllegalStateExceptionpublic static void noLastElement()
throws IllegalStateException
IllegalStateExceptionpublic static void noSuchMapping(Object key) throws NoSuchMappingException
NoSuchMappingExceptionpublic static void dequeNoFirst()
throws IndexOutOfBoundsException
IndexOutOfBoundsExceptionpublic static void dequeNoLast()
throws IndexOutOfBoundsException
IndexOutOfBoundsExceptionpublic static void dequeNoFirstToRemove()
throws IndexOutOfBoundsException
IndexOutOfBoundsExceptionpublic static void dequeNoLastToRemove()
throws IndexOutOfBoundsException
IndexOutOfBoundsExceptionpublic static void nullElementNotAllowed()
throws IllegalArgumentException
IllegalArgumentExceptionpublic static void cannotAdapt(String name) throws IllegalStateException
IllegalStateExceptionpublic static void unsupported(String name) throws UnsupportedOperationException
UnsupportedOperationExceptionpublic static void unmodifiable(String name) throws UnsupportedOperationException
UnsupportedOperationExceptionpublic static void cloning()
throws RuntimeException
RuntimeExceptionpublic static void invalidRangeBounds(Object first, Object last) throws IllegalArgumentException
IllegalArgumentExceptionpublic static void cannotMergeRanges(Object r1, Object r2) throws IllegalArgumentException
IllegalArgumentExceptionpublic static void setNoFirst()
throws NoSuchElementException
NoSuchElementExceptionpublic static void setNoLast()
throws NoSuchElementException
NoSuchElementExceptionpublic static void invalidSetBounds(Object low, Object high) throws IllegalArgumentException
IllegalArgumentExceptionpublic static void valueNotInSubRange(Object value) throws IllegalArgumentException
IllegalArgumentExceptionpublic static void invalidUpperBound(Object value) throws IllegalArgumentException
IllegalArgumentExceptionpublic static void invalidLowerBound(Object value) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2011–2021. All rights reserved.