SHARE
TWEET

Untitled

a guest Aug 19th, 2019 160 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * 不正リクエスト送信。file not found に係わるカスタム例外クラスを定義する
  4.  *
  5.  * @author Hiroyuki Takai <watashitakai@gmail.com>
  6.  * @since 2018/07/
  7.  */
  8.  
  9. namespace framework2\mvc;
  10.  
  11. class BadRequestException extends \RuntimeException
  12. {
  13.     // 例外を再定義し、メッセージをオプションではなくする
  14.     public function __construct($message, $code = 0, Exception $previous = null) {
  15.        
  16.    
  17.         // 全てを正しく確実に代入する
  18.         parent::__construct($message, $code, $previous);
  19.     }
  20.  
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top