org.codehaus.groovy.grails.web.servlet.mvc.exceptions
Class UnsupportedReturnValueException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.codehaus.groovy.grails.exceptions.GrailsException
                  extended by org.codehaus.groovy.grails.web.servlet.mvc.exceptions.GrailsMVCException
                      extended by org.codehaus.groovy.grails.web.servlet.mvc.exceptions.UnsupportedReturnValueException
All Implemented Interfaces:
Serializable

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.

Author:
Steven Devijver
See Also:
Serialized Form

Constructor Summary
UnsupportedReturnValueException()
           
UnsupportedReturnValueException(String message)
           
UnsupportedReturnValueException(String message, Throwable cause)
           
UnsupportedReturnValueException(Throwable cause)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnsupportedReturnValueException

public UnsupportedReturnValueException()

UnsupportedReturnValueException

public UnsupportedReturnValueException(String message)

UnsupportedReturnValueException

public UnsupportedReturnValueException(String message,
                                       Throwable cause)

UnsupportedReturnValueException

public UnsupportedReturnValueException(Throwable cause)