Skip to content

Commit

Permalink
Add new base exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
vasiliishvakin committed Apr 24, 2017
1 parent 64f1cf1 commit a3dc389
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Exception/AccessDeniedException.php
@@ -0,0 +1,14 @@
<?php

namespace Akademiano\HttpWarp\Exception;



class AccessDeniedException extends HttpUsableException
{
public function __construct($message = "", $code = 0, \Exception $previous = null)
{
$code = 403;
parent::__construct($message, $code, $previous);
}
}
14 changes: 14 additions & 0 deletions src/Exception/NotFoundException.php
@@ -0,0 +1,14 @@
<?php

namespace Akademiano\HttpWarp\Exception;



class NotFoundException extends HttpUsableException
{
public function __construct($message = "Not Found", $code = 404, \Exception $previous = null)
{
parent::__construct($message, $code, $previous);
}

}

0 comments on commit a3dc389

Please sign in to comment.