[李景山php]每天laravel-20160930|ValidationException.php
来源:互联网 发布:ketchup mac 编辑:程序博客网 时间:2024/05/16 18:00
<?phpnamespace Illuminate\Validation;use Exception;// more namespaceclass ValidationException extends Exception{ /** * The validator instance. * * @var \Illuminate\Validation\Validator */ public $validator;//The validator instance. /** * The recommended response to send to the client. * * @var \Illuminate\Http\Response|null */ public $response;// The recommended response to send to the client /** * Create a new exception instance. * * @param \Illuminate\Validation\Validator $validator * @param \Illuminate\Http\Response $response * @return void */ public function __construct($validator, $response = null) { parent::__construct('The given data failed to pass validation.'); $this->response = $response; $this->validator = $validator; }// parent:: // use parent __construct /** * Get the underlying response instance. * * @return \Symfony\Component\HttpFoundation\Response */ public function getResponse() { return $this->response; }// i like or hate get}
0 0
- [李景山php]每天laravel-20160930|ValidationException.php
- [李景山php]每天laravel-20160922|RedisServicProvider.php
- [李景山php]每天laravel-20160923|Hub.php
- [李景山php]每天laravel-20160924|PiplineServiceProvider.php
- [李景山php]每天laravel-20160925|Pipeline.php
- [李景山php]每天laravel-20160926|DatabasePresenceVerifier.php
- [李景山php]每天laravel-20160927|Factory.php
- [李景山php]每天laravel-20160928|PresenceVerifierInterface.php
- [李景山php]每天laravel-20160929|ValidatesWhenResolved.php
- [李景山php]每天laravel-20161001|ValidationServiceProvider.php
- [李景山php]每天laravel-20161016|JsonResponse.php
- [李景山php]每天laravel-20161017|ResponseTrait.php
- [李景山php]每天laravel-20161017|UploadedFile.php
- [李景山php]每天laravel-20161023|Reponse.php
- [李景山php]每天laravel-20161024|ArrayLoader.php
- [李景山php]每天laravel-20161025|LoaderInterface.php
- [李景山php]每天laravel-20161026|TranslationServiceProvider.php
- [李景山php]每天laravel-20161026|TranslationServiceProvider.php
- 常用sql语句(sqlserver)
- 构造方法串起来
- UVA 1149-Bin Packing
- controller上事物问题
- HDU 5752 Sqrt Bo(多校3--1001)
- [李景山php]每天laravel-20160930|ValidationException.php
- Android基础之Android 设计模式
- css的position
- 进程的状态
- java--05
- NOIP普及组2005 采药 0-1背包
- mysql插入数据库中文乱码
- J - A Simple Problem with Integers
- MFC中使用GDI+