Package simpleorm.utils
Class SException.Validation
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
simpleorm.utils.SException
simpleorm.utils.SException.Validation
- All Implemented Interfaces:
Serializable
- Enclosing class:
- SException
This Exception thrown by user written code to indicate user data entry
errors, especially in the business rule methods. The idea is that the calling
method can trap them and present neat messages to the user. Do not use this
exception for mysterious internal errors, only for well defined user errors
that do not require a stack trace.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class simpleorm.utils.SException
SException.Data, SException.Error, SException.InternalError, SException.Jdbc, SException.Test, SException.Validation
-
Constructor Summary
ConstructorsConstructorDescriptionValidation
(String message, Object... params) message is formatted with MessageFormat cons(inst, params). -
Method Summary
Methods inherited from class simpleorm.utils.SException
getFieldMeta, getFieldValue, getInstance, getParams, getRecordInstance, getValidator, setFieldMeta, setFieldValue, setInstance, setParams, setRecordInstance, setValidator
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
Validation
message is formatted with MessageFormat cons(inst, params). Details such as instance, field, validator class are automatically appended by the caller of the method
-