Class ValidationException

    • Constructor Detail

      • ValidationException

        public ValidationException​(Validatable validatable)
    • Method Detail

      • errors

        public Errors errors()
        Convenience method, returns the same object with errors that is attached to a model generated this exception.
        Returns:
        the same object wit errors that is attached to a model generated this exception
      • errors

        public Errors errors​(Locale locale)
        Convenience method, returns the same object with errors that is attached to a model generated this exception.
        Parameters:
        locale - locale in case messages are localized.
        Returns:
        the same object wit errors that is attached to a model generated this exception