class CustomUserMessageAccountStatusException extends AccountStatusException
{ private string
$messageKey;
private array
$messageData =
[];
public function __construct(string
$message = '', array
$messageData =
[], int
$code = 0, \Throwable
$previous = null
) { parent::
__construct($message,
$code,
$previous);
$this->
setSafeMessage($message,
$messageData);
} /**
* Sets a message that will be shown to the user.
*
* @param string $messageKey The message or message key
* @param array $messageData Data to be passed into the translator
*
* @return void
*/
public function setSafeMessage(string
$messageKey, array
$messageData =
[]) {