java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.jooby.exception.StatusCodeException
io.jooby.exception.BadRequestException
io.jooby.exception.TypeMismatchException
- All Implemented Interfaces:
Serializable
Type mismatch exception. Used when a value can't be converted to the required type.
- Since:
- 2.0.0
- Author:
- edgar
- See Also:
-
Constructor Summary
ConstructorDescriptionTypeMismatchException
(String name, Type type) Creates a type mismatch error.TypeMismatchException
(String name, Type type, Throwable cause) Creates a type mismatch error. -
Method Summary
Methods inherited from class io.jooby.exception.StatusCodeException
getStatusCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TypeMismatchException
Creates a type mismatch error.- Parameters:
name
- Parameter/attribute name.type
- Parameter/attribute type.cause
- Cause.
-
TypeMismatchException
Creates a type mismatch error.- Parameters:
name
- Parameter/attribute name.type
- Parameter/attribute type.
-
-
Method Details
-
getName
Parameter/attribute name.- Returns:
- Parameter/attribute name.
-