<?php namespace App\Exceptions; class NotLoggedInException extends HTTPException { public function __construct($httpCode = 401, $message = "You need to login", $code = 0, Exception $previous = null) { parent::__construct($httpCode, $message, $code, $previous); } }