Groovy Documentation

org.codehaus.groovy.grails.web.servlet.mvc.exceptions
[Java] Class UnsupportedReturnValueException

java.lang.Object
  java.lang.Throwable
      java.lang.Exception
          java.lang.RuntimeException
              org.codehaus.groovy.grails.exceptions.GrailsException
                  org.codehaus.groovy.grails.web.servlet.mvc.exceptions.GrailsMVCException
                      org.codehaus.groovy.grails.web.servlet.mvc.exceptions.UnsupportedReturnValueException

public class UnsupportedReturnValueException
extends GrailsMVCException

Thrown when the return value of a closure is unsupported.

If you are using a builder in your code and this exception is thrown you may need to return a null value at the end of the closure to avoid this exception.

Authors:
Steven Devijver


Constructor Summary
UnsupportedReturnValueException()

UnsupportedReturnValueException(java.lang.String message)

UnsupportedReturnValueException(java.lang.String message, java.lang.Throwable cause)

UnsupportedReturnValueException(java.lang.Throwable cause)

 
Method Summary
 
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(long, int), java.lang.RuntimeException#wait(long), java.lang.RuntimeException#wait(), 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

UnsupportedReturnValueException

public UnsupportedReturnValueException()


UnsupportedReturnValueException

public UnsupportedReturnValueException(java.lang.String message)


UnsupportedReturnValueException

public UnsupportedReturnValueException(java.lang.String message, java.lang.Throwable cause)


UnsupportedReturnValueException

public UnsupportedReturnValueException(java.lang.Throwable cause)


 

Groovy Documentation