Package net.solarnetwork.central
Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.solarnetwork.central.ValidationException
- All Implemented Interfaces:
Serializable
Exception for validation errors.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ValidationException(org.springframework.validation.Errors errors) Constructor with Errors.ValidationException(org.springframework.validation.Errors errors, org.springframework.context.MessageSource messageSource) Constructor with Errors and a MessageSource.ValidationException(org.springframework.validation.Errors errors, org.springframework.context.MessageSource messageSource, Throwable cause) Constructor with Errors and a MessageSource and root cause. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.validation.Errorsorg.springframework.context.MessageSourceMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ValidationException
public ValidationException()Default constructor. -
ValidationException
public ValidationException(org.springframework.validation.Errors errors) Constructor with Errors.- Parameters:
errors- the validation errors
-
ValidationException
public ValidationException(org.springframework.validation.Errors errors, org.springframework.context.MessageSource messageSource) Constructor with Errors and a MessageSource.- Parameters:
errors- the errorsmessageSource- the message source to use to resolve the Errors against
-
ValidationException
public ValidationException(org.springframework.validation.Errors errors, org.springframework.context.MessageSource messageSource, Throwable cause) Constructor with Errors and a MessageSource and root cause.- Parameters:
errors- the errorsmessageSource- the message source to use to resolve the Errors againstcause- the causing exception
-
-
Method Details
-
getErrors
public org.springframework.validation.Errors getErrors() -
getMessageSource
public org.springframework.context.MessageSource getMessageSource()
-