Exception handling in Grails controllers with ExceptionMapper in Grails 2.2.4 best practice
问题 While handling exception in Grails 2.2.4 with the scheme reported here: Exception handling in Grails controllers class ErrorController { def index() { def exception = request.exception.cause def message = ExceptionMapper.mapException(exception) def status = message.status response.status = status render(view: "/error", model: [status: status, exception: exception]) } } an exception is raised: groovy.lang.MissingPropertyException: No such property: ExceptionMapper for class: ErrorController