| Package | Description |
|---|---|
| pl.wavesoftware.eid.exceptions | |
| pl.wavesoftware.eid.utils |
| Modifier and Type | Method and Description |
|---|---|
Eid |
EidContainer.getEid()
Retrieves a Eid object
|
Eid |
EidRuntimeException.getEid() |
| Constructor and Description |
|---|
EidIllegalArgumentException(Eid id) |
EidIllegalArgumentException(Eid id,
String messageFormat,
Object... parameters) |
EidIllegalArgumentException(Eid id,
Throwable cause) |
EidIllegalStateException(Eid id) |
EidIllegalStateException(Eid id,
String messageFormat,
Object... parameters) |
EidIllegalStateException(Eid id,
Throwable cause) |
EidIndexOutOfBoundsException(Eid id) |
EidIndexOutOfBoundsException(Eid id,
String messageFormat,
Object... parameters) |
EidIndexOutOfBoundsException(Eid id,
Throwable cause) |
EidNullPointerException(Eid id) |
EidNullPointerException(Eid id,
String messageFormat,
Object... parameters) |
EidNullPointerException(Eid id,
Throwable cause) |
EidRuntimeException(Eid id)
Constructs a new runtime exception with the specified Eid object
|
EidRuntimeException(Eid id,
String messageFormat,
Object... parameters)
Constructs a new runtime exception with specified Eid object and custom message
The detail message is computed as:
String.format(Eid.getMessageFormat(), id.toString(), String.format(messageFormat, parameters))
|
EidRuntimeException(Eid id,
Throwable cause)
Constructs a new runtime exception with the specified Eid object and cause
The detail message is computed as String.format(Eid.getMessageFormat(), id.toString(), message(cause))
|
| Modifier and Type | Method and Description |
|---|---|
static void |
EidPreconditions.checkArgument(Boolean expression,
Eid eid)
Ensures the truth of an expression involving one or more parameters to the calling method.
|
static void |
EidPreconditions.checkArgument(Boolean expression,
Eid eid,
String messageFormat,
Object... parameters)
Ensures the truth of an expression involving one or more parameters to the calling method.
|
static int |
EidPreconditions.checkElementIndex(int index,
int size,
Eid eid)
Ensures that
index specifies a valid element in an array, list or string of size size. |
static int |
EidPreconditions.checkElementIndex(int index,
int size,
Eid eid,
String messageFormat,
Object... parameters)
Ensures that
index specifies a valid element in an array, list or string of size size. |
static <T> T |
EidPreconditions.checkNotNull(T reference,
Eid eid)
Ensures that an object reference passed as a parameter to the calling method is not null.
|
static <T> T |
EidPreconditions.checkNotNull(T reference,
Eid eid,
String messageFormat,
Object... parameters)
Ensures that an object reference passed as a parameter to the calling method is not null.
|
static void |
EidPreconditions.checkState(Boolean expression,
Eid eid)
Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the
calling method.
|
static void |
EidPreconditions.checkState(Boolean expression,
Eid eid,
String messageFormat,
Object... parameters)
Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the
calling method.
|
static <R> R |
EidPreconditions.tryToExecute(EidPreconditions.RiskyCode<R> code,
Eid eid)
Deprecated.
Use instead
EidPreconditions.tryToExecute(UnsafeSupplier, Eid). To be removed in next release. |
static void |
EidPreconditions.tryToExecute(EidPreconditions.UnsafeProcedure procedure,
Eid eid)
Tries to execute code in given unsafe procedure code block, and if exception is thrown, it will gets rethrown as a
EidRuntimeException with eid given as a argument. |
static <R> R |
EidPreconditions.tryToExecute(EidPreconditions.UnsafeSupplier<R> supplier,
Eid eid)
Tries to execute code in given unsafe supplier code block, and if exception is thrown, it will gets rethrown as a
EidRuntimeException with eid given as a argument. |
Copyright © 2015. All Rights Reserved.