public class MissingValueException extends BadRequestException
Constructor and Description |
---|
MissingValueException(String name)
Creates a missing exception.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Parameter/attribute name.
|
static <T> T |
requireNonNull(String name,
T value)
Check if the given value is null and throw a
MissingValueException exception. |
getStatusCode
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public String getName()
public static <T> T requireNonNull(@Nonnull String name, @Nullable T value)
MissingValueException
exception.T
- Value type.name
- Attribute's name.value
- Value to check.Copyright © 2020. All rights reserved.