public function __construct($message, $code = 0, \Exception $previous = null)
 {
     if (null === $message) {
         if (isset($this->messages[$code])) {
             $message = $this->messages[$code];
         } else {
             $message = 'Unknown json error';
         }
     }
     parent::__construct($message, $code, $previous);
 }
 /**
  * @param string $algorithm
  */
 public function __construct($algorithm)
 {
     $this->algorithm = $algorithm;
     parent::__construct(sprintf('The algorithm "%s" is not allowed.', $algorithm));
 }
 public function __construct($message, $claimName = null, $claimValue = null, $code = self::CLAIM_IS_MISSING, \Exception $previous = null)
 {
     $this->claimName = $claimName;
     $this->claimValue = $claimValue;
     parent::__construct($message, $code, $previous);
 }