Class InvalidAccessKeyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.xezzon.zeroweb.common.exception.ZerowebBusinessException
io.github.xezzon.zeroweb.third_party_app.exception.InvalidAccessKeyException
- All Implemented Interfaces:
Serializable
@NullMarked
public class InvalidAccessKeyException
extends io.github.xezzon.zeroweb.common.exception.ZerowebBusinessException
无效的访问密钥异常
当第三方应用访问密钥验证失败时抛出此异常。可能的原因包括:
- 未传递AccessKey或消息摘要
- AccessKey或签名使用的SecretKey不正确
- AccessKey或签名使用的SecretKey不匹配
- 访问密钥已过期或被吊销
- Author:
- xezzon
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.github.xezzon.zeroweb.common.exception.ZerowebBusinessException
getParametersMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ERROR_CODE
-
-
Constructor Details
-
InvalidAccessKeyException
public InvalidAccessKeyException()默认构造函数
-
-
Method Details
-
code
- Specified by:
codein classio.github.xezzon.zeroweb.common.exception.ZerowebBusinessException
-
httpStatus
public int httpStatus()- Overrides:
httpStatusin classio.github.xezzon.zeroweb.common.exception.ZerowebBusinessException- Returns:
- HTTP状态码(403 Forbidden)
-