Package zombie.util.util
Class Exceptions
java.lang.Object
zombie.util.util.Exceptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
cannotAdapt
(String string) static void
cannotMergeRanges
(Object object, Object object2) static void
cloning()
static void
static void
static void
static void
static void
static void
indexOutOfBounds
(int int1, int int2, int int3) static void
invalidLowerBound
(Object object) static void
invalidRangeBounds
(Object object, Object object2) static void
invalidSetBounds
(Object object, Object object2) static void
invalidUpperBound
(Object object) static void
negativeArgument
(String string, Object object) static void
negativeOrZeroArgument
(String string, Object object) static void
static void
static void
static void
static void
noSuchMapping
(Object object) static void
nullArgument
(String string) static void
static void
static void
static void
static void
unmodifiable
(String string) static void
unsupported
(String string) static void
valueNotInSubRange
(Object object)
-
Constructor Details
-
Exceptions
public Exceptions()
-
-
Method Details
-
indexOutOfBounds
- Throws:
IndexOutOfBoundsException
-
nullArgument
- Throws:
NullPointerException
-
negativeArgument
- Throws:
IllegalArgumentException
-
negativeOrZeroArgument
public static void negativeOrZeroArgument(String string, Object object) 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
public static void invalidRangeBounds(Object object, Object object2) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
cannotMergeRanges
- Throws:
IllegalArgumentException
-
setNoFirst
- Throws:
NoSuchElementException
-
setNoLast
- Throws:
NoSuchElementException
-
invalidSetBounds
- Throws:
IllegalArgumentException
-
valueNotInSubRange
- Throws:
IllegalArgumentException
-
invalidUpperBound
- Throws:
IllegalArgumentException
-
invalidLowerBound
- Throws:
IllegalArgumentException
-