public class ValidationException extends Exception
| Constructor and Description |
|---|
ValidationException(List<ResourceMessage> resourceMessages)
Construct the validation exception with the list of messages
|
ValidationException(List<ResourceMessage> resourceMessages,
Throwable cause)
Construct the validation exception with the list of messages
|
| Modifier and Type | Method and Description |
|---|---|
protected I18NService |
getI18nService() |
String |
getMessage()
Get the localised message from the resource messages.
|
protected MessageSource |
getMessageSource() |
List<ResourceMessage> |
getResourceMessages()
Get the resource messages
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ValidationException(List<ResourceMessage> resourceMessages)
resourceMessages - the localisable messagespublic ValidationException(List<ResourceMessage> resourceMessages, Throwable cause)
resourceMessages - the localisable messagescause - a nested exceptionpublic String getMessage()
getMessage in class Throwablepublic List<ResourceMessage> getResourceMessages()
protected MessageSource getMessageSource()
protected I18NService getI18nService()
Copyright © 2017 SAP SE. All Rights Reserved.