public class ValidationException extends APIException
| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
ValidationException()
Default empty constructor.
|
ValidationException(org.springframework.validation.Errors errors)
Constructor used to associate an Spring Errors object with a ValidationException
|
ValidationException(String message)
General constructor to give the end user a helpful message that relates to why this error
occurred.
|
ValidationException(String message,
org.springframework.validation.Errors errors)
Constructor to give the end user a helpful message and to associate an Spring Errors object
with a ValidationException
|
ValidationException(String message,
Throwable cause)
General constructor to give the end user a helpful message and to also propagate the parent
error exception message.
|
ValidationException(Throwable cause)
Constructor used to simply chain a parent exception cause to an ValidationException.
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.validation.Errors |
getErrors() |
void |
setErrors(org.springframework.validation.Errors errors) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final long serialVersionUID
public ValidationException()
public ValidationException(String message)
message - helpful message string for the end userpublic ValidationException(String message, Throwable cause)
message - helpful message string for the end usercause - the parent exception cause that this ValidationException is wrapping aroundpublic ValidationException(Throwable cause)
cause - the parent exception cause that this ValidationException is wrapping aroundpublic ValidationException(org.springframework.validation.Errors errors)
errors - public ValidationException(String message, org.springframework.validation.Errors errors)
errors - Copyright © 2024 OpenMRS Inc.. All rights reserved.