Class SException.Validation

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    SException

    public static class SException.Validation
    extends 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:
    Serialized Form
    • Constructor Detail

      • Validation

        public Validation​(java.lang.String message,
                          java.lang.Object... params)
        message is formatted with MessageFormat cons(inst, params). Details such as instance, field, validator class are automatically appended by the caller of the method