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
IndexOutOfBoundsException
public static void nullArgument(String name) throws NullPointerException
NullPointerException
public static void negativeArgument(String name, Object value) throws IllegalArgumentException
IllegalArgumentException
public static void negativeOrZeroArgument(String name, Object value) throws IllegalArgumentException
IllegalArgumentException
public static void endOfIterator() throws NoSuchElementException
NoSuchElementException
public static void startOfIterator() throws NoSuchElementException
NoSuchElementException
public static void noElementToRemove() throws IllegalStateException
IllegalStateException
public static void noElementToGet() throws IllegalStateException
IllegalStateException
public static void noElementToSet() throws IllegalStateException
IllegalStateException
public static void noLastElement() throws IllegalStateException
IllegalStateException
public static void noSuchMapping(Object key) throws NoSuchMappingException
NoSuchMappingException
public static void dequeNoFirst() throws IndexOutOfBoundsException
IndexOutOfBoundsException
public static void dequeNoLast() throws IndexOutOfBoundsException
IndexOutOfBoundsException
public static void dequeNoFirstToRemove() throws IndexOutOfBoundsException
IndexOutOfBoundsException
public static void dequeNoLastToRemove() throws IndexOutOfBoundsException
IndexOutOfBoundsException
public static void nullElementNotAllowed() throws IllegalArgumentException
IllegalArgumentException
public static void cannotAdapt(String name) throws IllegalStateException
IllegalStateException
public static void unsupported(String name) throws UnsupportedOperationException
UnsupportedOperationException
public static void unmodifiable(String name) throws UnsupportedOperationException
UnsupportedOperationException
public static void cloning() throws RuntimeException
RuntimeException
public static void invalidRangeBounds(Object first, Object last) throws IllegalArgumentException
IllegalArgumentException
public static void cannotMergeRanges(Object r1, Object r2) throws IllegalArgumentException
IllegalArgumentException
public static void setNoFirst() throws NoSuchElementException
NoSuchElementException
public static void setNoLast() throws NoSuchElementException
NoSuchElementException
public static void invalidSetBounds(Object low, Object high) throws IllegalArgumentException
IllegalArgumentException
public static void valueNotInSubRange(Object value) throws IllegalArgumentException
IllegalArgumentException
public static void invalidUpperBound(Object value) throws IllegalArgumentException
IllegalArgumentException
public static void invalidLowerBound(Object value) throws IllegalArgumentException
IllegalArgumentException
Copyright © 2011–2021. All rights reserved.