| Total Complexity | 3 | 
| Total Lines | 29 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 22 | class Exception extends \Exception implements ExceptionInterface  | 
            ||
| 23 | { | 
            ||
| 24 | /**  | 
            ||
| 25 | * Creates a new exception using a format and values.  | 
            ||
| 26 | *  | 
            ||
| 27 | * @param string $format the format  | 
            ||
| 28 | * @param mixed $value,... The value(s).  | 
            ||
| 29 | *  | 
            ||
| 30 | * @return Exception the exception  | 
            ||
| 31 | */  | 
            ||
| 32 | public static function create($format, $value = null)  | 
            ||
| 33 |     { | 
            ||
| 34 |         if (0 < func_num_args()) { | 
            ||
| 35 | $format = vsprintf($format, array_slice(func_get_args(), 1));  | 
            ||
| 36 | }  | 
            ||
| 37 | |||
| 38 | return new static($format);  | 
            ||
| 39 | }  | 
            ||
| 40 | |||
| 41 | /**  | 
            ||
| 42 | * Creates an exception for the last error message.  | 
            ||
| 43 | *  | 
            ||
| 44 | * @return Exception the exception  | 
            ||
| 45 | */  | 
            ||
| 46 | public static function lastError()  | 
            ||
| 51 | }  | 
            ||
| 52 | }  | 
            ||
| 53 |