/** * Create a new resource not found exception. * * @param string $resource * @param \Exception $previous (default: null) * @return void */ public function __construct($resource, \Exception $previous = null) { parent::__construct($resource, "The (requested) resource \"{$resource}\" was not found.", Response::HTTP_NOT_FOUND, $previous); }
/** * Create a new resource missing validation exception. * * @param string $resource * @param \Exception $previous (default: null) * @return void */ public function __construct($resource, \Exception $previous = null) { parent::__construct($resource, "The resource \"{$resource}\" has no validation implementation, making it unavailable for user input.", Response::HTTP_NOT_IMPLEMENTED, $previous); }