Skip to content
Snippets Groups Projects
Commit 98995f7c authored by Kenneth Ezekiel's avatar Kenneth Ezekiel
Browse files

create exceptions

parent 6643e5b2
Branches
No related merge requests found
<?php
class BadRequestException extends Exception
{
// Previous is previous exception that caused this exception to be thrown, so it can be traced and only be intercepted in view layer
public function __construct($message = "", $code = 0, Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
}
}
\ No newline at end of file
<?php
class MethodNotAllowedException extends Exception
{
// Previous is previous exception that caused this exception to be thrown, so it can be traced and only be intercepted in view layer
public function __construct($message = "", $code = 0, Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
}
}
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment