类 CloudFoundryAuthorizationException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.boot.actuate.autoconfigure.cloudfoundry.CloudFoundryAuthorizationException
- 所有已实现的接口:
Serializable
public class CloudFoundryAuthorizationException extends RuntimeException
Authorization exceptions thrown to limit access to the endpoints.- 从以下版本开始:
- 2.0.0
- 另请参阅:
- 序列化表格
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
CloudFoundryAuthorizationException.Reason
Reasons why the exception can be thrown.
构造器概要
构造器 构造器 说明 CloudFoundryAuthorizationException(CloudFoundryAuthorizationException.Reason reason, String message)
CloudFoundryAuthorizationException(CloudFoundryAuthorizationException.Reason reason, String message, Throwable cause)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 CloudFoundryAuthorizationException.Reason
getReason()
Return the reason why the authorization exception was thrown.org.springframework.http.HttpStatus
getStatusCode()
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
public org.springframework.http.HttpStatus getStatusCode()
Return the status code that should be returned to the client.- 返回:
- the HTTP status code
getReason
public CloudFoundryAuthorizationException.Reason getReason()
Return the reason why the authorization exception was thrown.- 返回:
- the reason