/** * @param int $priority */ public function setPriority($priority) { try { $this->message->setPriority($priority); } catch (\Exception $e) { throw new MailerException($e->getMessage()); } }