| 1 | <?php |
||
| 14 | class WC_Stripe_Exception extends Exception { |
||
| 15 | |||
| 16 | /** @var string sanitized/localized error message */ |
||
| 17 | protected $localized_message; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Setup exception |
||
| 21 | * |
||
| 22 | * @since 4.0.2 |
||
| 23 | * @param string $error_message Full response |
||
| 24 | * @param string $localized_message user-friendly translated error message |
||
| 25 | */ |
||
| 26 | public function __construct( $error_message = '', $localized_message = '' ) { |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Returns the localized message. |
||
| 33 | * |
||
| 34 | * @since 4.0.2 |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function getLocalizedMessage() { |
||
| 40 | } |
||
| 41 |