public function __construct($type)
 {
     parent::__construct("The '{$type}' type is not valid.");
     $this->type = $type;
 }
 public function __construct($method)
 {
     parent::__construct("The '{$method}' type is not valid.");
     $this->method = $method;
 }