Groovy Documentation

grails.validation
[Java] Class ValidationException

java.lang.Object
  java.lang.Throwable
      java.lang.Exception
          java.lang.RuntimeException
              org.codehaus.groovy.grails.exceptions.GrailsException
                  grails.validation.ValidationException

public class ValidationException
extends GrailsException

Thrown when validation fails during a .save().

Authors:
Jeff Brown
Since:
1.2


Constructor Summary
ValidationException(java.lang.String msg, org.springframework.validation.Errors e)

 
Method Summary
static java.lang.String formatErrors(org.springframework.validation.Errors errors)

static java.lang.String formatErrors(org.springframework.validation.Errors errors, java.lang.String msg)

org.springframework.validation.Errors getErrors()

java.lang.String getMessage()

 
Methods inherited from class java.lang.RuntimeException
java.lang.RuntimeException#printStackTrace(), java.lang.RuntimeException#printStackTrace(java.io.PrintWriter), java.lang.RuntimeException#printStackTrace(java.io.PrintStream), java.lang.RuntimeException#fillInStackTrace(), java.lang.RuntimeException#getCause(), java.lang.RuntimeException#initCause(java.lang.Throwable), java.lang.RuntimeException#toString(), java.lang.RuntimeException#getMessage(), java.lang.RuntimeException#getLocalizedMessage(), java.lang.RuntimeException#getStackTrace(), java.lang.RuntimeException#setStackTrace([Ljava.lang.StackTraceElement;), java.lang.RuntimeException#addSuppressed(java.lang.Throwable), java.lang.RuntimeException#getSuppressed(), java.lang.RuntimeException#wait(), java.lang.RuntimeException#wait(long, int), java.lang.RuntimeException#wait(long), java.lang.RuntimeException#equals(java.lang.Object), java.lang.RuntimeException#hashCode(), java.lang.RuntimeException#getClass(), java.lang.RuntimeException#notify(), java.lang.RuntimeException#notifyAll()
 

Constructor Detail

ValidationException

public ValidationException(java.lang.String msg, org.springframework.validation.Errors e)


 
Method Detail

formatErrors

public static java.lang.String formatErrors(org.springframework.validation.Errors errors)


formatErrors

public static java.lang.String formatErrors(org.springframework.validation.Errors errors, java.lang.String msg)


getErrors

public org.springframework.validation.Errors getErrors()


getMessage

public java.lang.String getMessage()


 

Groovy Documentation