@CompileStatic@groovy.transform.CompileStatic class ErrorController extends Object
异常处理
| Modifiers | Name | Description |
|---|---|---|
static List<String> |
IGNORED_PARAMS |
被忽略不打印的请求参数名 |
| Type | Name and description |
|---|---|
ErrorService |
errorService |
static Object |
scope |
grails.plugin.springsecurity.SpringSecurityService |
springSecurityService |
| Type | Name and description |
|---|---|
Object |
denied(String message)显示拒绝访问信息 |
Object |
error(String message)显示错误消息 |
Object |
index() |
Object |
internal()显示 500 错误消息(Internal Server Error 时自动调用) |
Object |
message(String message)显示提示信息 |
Object |
testHttpsAjaxPost()测试 https 情况下,POST 是否会丢数据 |
Object |
warning(String message)显示警告消息 |
| Methods inherited from class | Name |
|---|---|
class Object |
Object#wait(long, int), Object#wait(long), Object#wait(), Object#equals(Object), Object#toString(), Object#hashCode(), Object#getClass(), Object#notify(), Object#notifyAll() |
显示拒绝访问信息
显示错误消息
显示 500 错误消息(Internal Server Error 时自动调用)
The server encountered an unexpected condition which prevented it from fulfilling the request.
显示提示信息
测试 https 情况下,POST 是否会丢数据
私有证书 + XP + IE8的时候,后台无法获得请求消息体中的参数。 配合 application.js 中的同名 API 使用。
显示警告消息