File "class-wc-api-exception.php"
Full path: /home/kosmetik/public_html/wp-content/plugins/woocommerce/includes/legacy/api/v2/class-wc-api-exception.php
File
size: 395 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
if (!defined('ABSPATH')) {
exit;
}
class WC_API_Exception extends Exception
{
protected $error_code;
public function __construct($error_code, $error_message, $http_status_code)
{
$this->error_code = $error_code;
parent::__construct($error_message, $http_status_code);
}
public function getErrorCode()
{
return $this->error_code;
}
}