Class EventSecurityException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cloud.opencode.base.core.exception.OpenException
cloud.opencode.base.event.exception.EventException
cloud.opencode.base.event.exception.EventSecurityException
- All Implemented Interfaces:
Serializable
Event Security Exception
事件安全异常
Exception thrown for security-related event errors.
安全相关事件错误时抛出的异常。
Examples | 示例:
- Event signature verification failed - 事件签名验证失败
- Rate limit exceeded - 频率限制超出
- Unauthorized listener registration - 未授权的监听器注册
Features | 主要功能:
- Security violation reporting - 安全违规报告
- Rate limit and verification errors - 频率限制和验证错误
Security | 安全性:
- Thread-safe: Yes (stateless) - 线程安全: 是(无状态)
- Since:
- JDK 25, opencode-base-event V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEventSecurityException(String message) Create security exception with message 使用消息创建安全异常EventSecurityException(String message, EventErrorCode errorCode) Create security exception with message and error code 使用消息和错误码创建安全异常EventSecurityException(String message, Throwable cause) Create security exception with message and cause 使用消息和原因创建安全异常EventSecurityException(String message, Throwable cause, Event event, EventErrorCode errorCode) Create security exception with all parameters 使用所有参数创建安全异常 -
Method Summary
Methods inherited from class EventException
getEvent, getEventErrorCodeMethods inherited from class OpenException
getComponent, getErrorCode, getMessage, getRawMessageMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EventSecurityException
Create security exception with message 使用消息创建安全异常- Parameters:
message- the error message | 错误消息
-
EventSecurityException
Create security exception with message and error code 使用消息和错误码创建安全异常- Parameters:
message- the error message | 错误消息errorCode- the error code | 错误码
-
EventSecurityException
-
EventSecurityException
public EventSecurityException(String message, Throwable cause, Event event, EventErrorCode errorCode) Create security exception with all parameters 使用所有参数创建安全异常- Parameters:
message- the error message | 错误消息cause- the cause | 原因event- the related event | 相关事件errorCode- the error code | 错误码
-