| Total Complexity | 3 | 
| Total Lines | 52 | 
| Duplicated Lines | 0 % | 
| Coverage | 0% | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 8 | class AdminException extends Exception  | 
            ||
| 9 | { | 
            ||
| 10 | /**  | 
            ||
| 11 | * @var $links A collection of links to pass to the view.  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 12 | */  | 
            ||
| 13 | private $links;  | 
            ||
| 14 | |||
| 15 | /**  | 
            ||
| 16 | * Custom constructor to add additional elements to render view.  | 
            ||
| 17 | *  | 
            ||
| 18 | * @param string $message Custom error message.  | 
            ||
| 19 | * @param integer $code HTTP code to return.  | 
            ||
| 20 | * @param \Throwable $previous The last exception thrown.  | 
            ||
| 21 | * @param string[] $links A collection of links to send to the view.  | 
            ||
| 22 | *  | 
            ||
| 23 | * @return void  | 
            ||
| 24 | */  | 
            ||
| 25 | public function __construct(string $message, int $code, ?\Throwable $previous = null, array $links = null)  | 
            ||
| 26 |     { | 
            ||
| 27 | $this->links = $links;  | 
            ||
| 28 | parent::__construct($message, $code, $previous);  | 
            ||
| 29 | }  | 
            ||
| 30 | |||
| 31 | /**  | 
            ||
| 32 | * Render the exception into an HTTP response.  | 
            ||
| 33 | *  | 
            ||
| 34 | * @param \Illuminate\Http\Request $request Incoming request object.  | 
            ||
| 35 | * @return \Illuminate\Http\Response|\Illuminate\Contracts\Routing\ResponseFactory  | 
            ||
| 36 | */  | 
            ||
| 37 | public function render(\Illuminate\Http\Request $request)  | 
            ||
| 49 | );  | 
            ||
| 50 | }  | 
            ||
| 51 | |||
| 52 | /**  | 
            ||
| 53 | * Override, custom exception doesn't return a status code.  | 
            ||
| 54 | *  | 
            ||
| 55 | * @return mixed  | 
            ||
| 56 | */  | 
            ||
| 57 | public function getStatusCode()  | 
            ||
| 62 |