Class SmsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cloud.opencode.base.sms.exception.SmsException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SmsNetworkException, SmsRateLimitException, SmsSendException, SmsTemplateException, SmsTimeoutException
SMS Exception
短信异常
Base exception for SMS operations.
短信操作的基础异常。
Features | 主要功能:
- Error code classification - 错误码分类
- Extends RuntimeException - 继承RuntimeException
Usage Examples | 使用示例:
throw new SmsException(SmsErrorCode.SEND_FAILED, "Send failed for phone");
Security | 安全性:
- Thread-safe: Yes (immutable after construction) - 线程安全: 是(构造后不可变)
- Since:
- JDK 25, opencode-base-sms V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSmsException(SmsErrorCode errorCode) SmsException(SmsErrorCode errorCode, String message) SmsException(SmsErrorCode errorCode, String message, Throwable cause) SmsException(SmsErrorCode errorCode, Throwable cause) -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SmsException
-
SmsException
-
SmsException
-
SmsException
-
-
Method Details
-
getErrorCode
-
getCode
public int getCode()
-