SMS
extends Mail
in package
SMS Exception
Tags
Table of Contents
- ERROR_INVALID_RECIPIENT = 1
- Mail recipient address is invalid.
- ERROR_INVALID_REPLY_TO = 3
- Mail reply to address is invalid.
- ERROR_INVALID_SENDER = 2
- Mail sender address is invalid.
- ERROR_TOO_MANY_RECIPIENTS = 4
- Mail too many recipients.
- ERROR_UNKNOWN = 0
- Default error message when the error is not known exactly.
- ERROR_UNKNOWN_CARRIER = 5
- SMS unknown carrier.
- $defaultDisplayMessage : string
- Safe error message to return
- getDisplayMessage() : string
- Returns the error message, but excludes too technical messages.
Constants
ERROR_INVALID_RECIPIENT
Mail recipient address is invalid.
public
int
ERROR_INVALID_RECIPIENT
= 1
ERROR_INVALID_REPLY_TO
Mail reply to address is invalid.
public
int
ERROR_INVALID_REPLY_TO
= 3
ERROR_INVALID_SENDER
Mail sender address is invalid.
public
int
ERROR_INVALID_SENDER
= 2
ERROR_TOO_MANY_RECIPIENTS
Mail too many recipients.
public
int
ERROR_TOO_MANY_RECIPIENTS
= 4
ERROR_UNKNOWN
Default error message when the error is not known exactly.
public
int
ERROR_UNKNOWN
= 0
Will return $defaultDisplayMessage if APPLICATION_ENV is not development.
ERROR_UNKNOWN_CARRIER
SMS unknown carrier.
public
int
ERROR_UNKNOWN_CARRIER
= 5
Properties
$defaultDisplayMessage
Safe error message to return
protected
string
$defaultDisplayMessage
= 'sms_failure'
Methods
getDisplayMessage()
Returns the error message, but excludes too technical messages.
public
getDisplayMessage() : string