public function __construct($id, $user, $code = 0, Exception $previous = null)
 {
     $message = 'You (id:' . $user . ') participate already at the event ' . $id . ' !';
     parent::__construct($message, $code);
     if (!is_null($previous)) {
         $this->previous = $previous;
     }
 }
 public function __construct($code = 0, Exception $previous = null)
 {
     $message = 'Passwords are not the same';
     parent::__construct($message, $code);
     if (!is_null($previous)) {
         $this->previous = $previous;
     }
 }
 public function __construct($code = 0, Exception $previous = null)
 {
     $message = 'You are not authenticated.';
     parent::__construct($message, $code);
     if (!is_null($previous)) {
         $this->previous = $previous;
     }
 }
 public function __construct($id, $code = 0, Exception $previous = null)
 {
     $message = 'The event id ' . $id . ' was not found !';
     parent::__construct($message, $code);
     if (!is_null($previous)) {
         $this->previous = $previous;
     }
 }
 public function __construct($id, $code = 0, Exception $previous = null)
 {
     $message = 'The article id ' . $id . ' is not yours !';
     parent::__construct($message, $code);
     if (!is_null($previous)) {
         $this->previous = $previous;
     }
 }