public function __construct($regex)
 {
     $msg = "invalid regex '{$regex}'";
     parent::__construct(400, $msg);
 }
 public function __construct($range)
 {
     $msg = "cannot parse range '{$range}'";
     parent::__construct(400, $msg);
 }