static public function createWithSafeMessage($safeMessage = "", array $messageData = array(), $code = 0, \Exception $previous = null)
    {
        $exception = new static($safeMessage, $code, $previous);
        $exception->setSafeMessage($safeMessage, $messageData);

        return $exception;
    }
static public function createWithSafeMessage($safeMessage = "", array $messageData = array(), $code = 0, \Exception $previous = null)
    {
        $exception = new static($safeMessage, $code, $previous);
        $exception->setSafeMessage($safeMessage, $messageData);

        return $exception;
    }
static public function createWithSafeMessage ( $ safeMessage = "" , array $ messageData = array ( ) , $ code = 0 , \ Exception $ previous = null ) { $ exception = new static ( $ safeMessage , $ code , $ previous ) ; $ exception -> setSafeMessage ( $ safeMessage , $ messageData ) ; return $ exception ; }
Helper method to create this exception and set the safe message
that will be shown to the user.

@param string $safeMessage
@param array $messageData
@param int $code
@param \Exception $previous
@return CustomAuthenticationException
Helper method to create this exception and set the safe message that will be shown to the user .