@CompileStatic abstract class ErrorsViews extends java.lang.Object
The views that render the validation errors in JSON, looked up the way JSON views looks them up when it renders them. Without JSON views the converters render them.
| Type | Name and description |
|---|---|
static ErrorsViews |
NONEThe errors are rendered by the converters, with no view. |
| Constructor and description |
|---|
ErrorsViews() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
abstract boolean |
hasOwnView(GrailsControllerClass controller)Whether the controller has an errors view of its own, which JSON views prefers. |
|
static ErrorsViews |
of(ApplicationContext context)The views the application renders the errors with: those of JSON views where the application uses them. |
|
abstract ErrorsRendering |
rendering()What renders the errors of a controller without an errors view of its own. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
The errors are rendered by the converters, with no view.
Whether the controller has an errors view of its own, which JSON views prefers.
The views the application renders the errors with: those of JSON views where the application uses them.
What renders the errors of a controller without an errors view of its own.