public class MalformedValueException extends ViolationException
Constructor and Description |
---|
MalformedValueException(Converter<?> converter,
ValidationContext<?> context,
String value)
Constructs a new
MalformedValueException with the specified
converter, context and invalid value. |
MalformedValueException(Converter<?> converter,
ValidationContext<?> context,
String value,
Throwable cause)
Constructs a new
MalformedValueException with the specified
converter, context, invalid value and cause. |
Modifier and Type | Method and Description |
---|---|
Converter<?> |
getConverter()
Returns converter that is source of this exception.
|
String |
getInvalidValue()
Returns string representation of invalid value.
|
getComponent, getElementName, getElementType, getEntityType, getInvalidIndex, getInvalidTarget, getInvalidType, getLeafEntity, getRootEntity
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public MalformedValueException(Converter<?> converter, ValidationContext<?> context, String value)
MalformedValueException
with the specified
converter, context and invalid value.converter
- Converter that is source of this exception.context
- Validation context.value
- String representation of invalid value.public MalformedValueException(Converter<?> converter, ValidationContext<?> context, String value, Throwable cause)
MalformedValueException
with the specified
converter, context, invalid value and cause.converter
- Converter that is source of this exception.context
- Validation context.value
- String representation of invalid value.cause
- Cause to be wrapped.public Converter<?> getConverter()
public String getInvalidValue()
getInvalidValue
in class ViolationException
Copyright © 2011–2020 FoxLabs. All rights reserved.