MailDisabledException
Extends RuntimeExceptionException class defining an error for disabled mail functionality.
final
since |
4.0.0 |
---|---|
package |
Joomla CMS |
Methods
__construct
Constructor.
__construct( reason, message = '', code, \Throwable previous = null) :
since |
4.0.0 |
---|
Arguments
- reason
string
The reason why mail is disabled.- message
string
The Exception message to throw.- code
int
The Exception code.- previous
Throwable
The previous exception used for the exception chaining.
Response
mixed
getReason
Method to return the reason why mail is disabled.
getReason() :
since |
4.0.0 |
---|
Response
string
Constants
REASON_USER_DISABLED
Send Mail option is disabled by the user.
Value | 'user_disabled' |
---|---|
since |
4.0.0 |
Type(s)
string
REASON_MAIL_FUNCTION_NOT_AVAILABLE
Mail() function is not available on the system.
Value | 'mail_function_not_available' |
---|---|
since |
4.0.0 |
Type(s)
string
Properties
reason
Reason mail is disabled.
since |
4.0.0 |
---|
Type(s)
string