MailDisabledException
扩展 RuntimeException定义禁用邮件功能错误的异常类。
final
| 自 |
4.0.0 |
|---|---|
| 包 |
Joomla CMS |
方法
__construct
构造函数。
__construct( reason, message = '', code, \Throwable previous = null) :
| 自 |
4.0.0 |
|---|
参数
- reason
string禁用邮件的原因。- message
string要抛出的异常消息。- code
int异常代码。- previous
Throwable用于异常链接的先前异常。
响应
混合
getReason
用于返回禁用邮件原因的方法。
getReason() :
| 自 |
4.0.0 |
|---|
响应
字符串
常量
REASON_USER_DISABLED
用户禁用了“发送邮件”选项。
| 值 | 'user_disabled' |
|---|---|
| 自 |
4.0.0 |
类型
字符串
REASON_MAIL_FUNCTION_NOT_AVAILABLE
系统上没有 Mail() 函数。
| 值 | 'mail_function_not_available' |
|---|---|
| 自 |
4.0.0 |
类型
字符串
属性
reason
禁用邮件的原因。
| 自 |
4.0.0 |
|---|
类型
字符串