1 | <?php |
||
7 | class Exceptions extends Exception |
||
8 | { |
||
9 | // Error messages: |
||
10 | /** |
||
11 | * @var array |
||
12 | */ |
||
13 | private static $_errors = [ |
||
14 | 'format.invalid_date' => 'The specified date is invalid. Please use ISO 8601 notation (e.g. YYYY-MM-DD).', |
||
15 | 'format.invalid_currency_code' => 'The specified currency code is invalid. Please use ISO 4217 notation (e.g. USD).', |
||
16 | 'format.unsupported_currency' => 'The specified currency code is not currently supported.', |
||
17 | 'format.unsupported_type' => 'The Specified Types Is Currently Not Supported', |
||
18 | 'format.is_null' => 'The Access Token can not be null. Please pass it to the constructor', |
||
19 | ]; |
||
20 | |||
21 | public static function create($message) |
||
25 | } |
||
26 |