| 1 | <?php |
||
| 20 | class RestException extends \EE_Error |
||
| 21 | { |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var array |
||
| 25 | */ |
||
| 26 | protected $wp_error_data = array(); |
||
| 27 | |||
| 28 | protected $wp_error_code = ''; |
||
| 29 | |||
| 30 | |||
| 31 | |||
| 32 | public function __construct($string_code, $message, $wp_error_data = array(), $previous = null) |
||
| 49 | |||
| 50 | |||
| 51 | |||
| 52 | /** |
||
| 53 | * Array of data that may have been set during the constructor, intended for WP_Error's data |
||
| 54 | * |
||
| 55 | * @return array |
||
| 56 | */ |
||
| 57 | public function getData() |
||
| 61 | |||
| 62 | |||
| 63 | |||
| 64 | /** |
||
| 65 | * Gets the error string |
||
| 66 | * |
||
| 67 | * @return string |
||
| 68 | */ |
||
| 69 | public function getStringCode() |
||
| 73 | } |
||
| 74 |