<?php namespace App\Admin\Extensions\Exception; use Exception; class ValidateException extends Exception { protected $response; public function __construct($response) { parent::__construct('error'); $this->response=$response; } /** * Render the exception into an HTTP response. * * @return \Illuminate\Http\Response */ public function render() { return $this->response; } }