类 CloudFoundryAuthorizationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.boot.actuate.autoconfigure.cloudfoundry.CloudFoundryAuthorizationException
- 所有已实现的接口:
Serializable
Authorization exceptions thrown to limit access to the endpoints.
- 从以下版本开始:
- 2.0.0
- 作者:
- Madhura Bhave
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明static enum
Reasons why the exception can be thrown. -
构造器概要
构造器构造器说明CloudFoundryAuthorizationException
(CloudFoundryAuthorizationException.Reason reason, String message) CloudFoundryAuthorizationException
(CloudFoundryAuthorizationException.Reason reason, String message, Throwable cause) -
方法概要
修饰符和类型方法说明Return the reason why the authorization exception was thrown.Return the status code that should be returned to the client.
-
构造器详细资料
-
CloudFoundryAuthorizationException
public CloudFoundryAuthorizationException(CloudFoundryAuthorizationException.Reason reason, String message) -
CloudFoundryAuthorizationException
public CloudFoundryAuthorizationException(CloudFoundryAuthorizationException.Reason reason, String message, Throwable cause)
-
-
方法详细资料
-
getStatusCode
Return the status code that should be returned to the client.- 返回:
- the HTTP status code
-
getReason
Return the reason why the authorization exception was thrown.- 返回:
- the reason
-