File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/class-yith-wcwl-exception.php.tar
httpdocs/wp-content/plugins/yith-woocommerce-wishlist/includes/class-yith-wcwl-exception.php 0000644 00000001437 15154212530 0035121 0 ustar 00 var/www/vhosts/uyarreklam.com.tr <?php
/**
* Wishlist Exception class
*
* @package YITH\Wishlist\Classes
* @author YITH <plugins@yithemes.com>
* @version 3.0.0
*/
defined( 'YITH_WCWL' ) || exit; // Exit if accessed directly.
if ( ! class_exists( 'YITH_WCWL_Exception' ) ) {
/**
* WooCommerce Wishlist Exception
*
* @since 1.0.0
*/
class YITH_WCWL_Exception extends Exception {
/**
* Available error codes
*
* @var array
*/
private $error_codes = array(
0 => 'error',
1 => 'exists',
);
/**
* Returns textual code for the error
*
* @return string Textual code of the error.
*/
public function getTextualCode() {
$code = $this->getCode();
if ( array_key_exists( $code, $this->error_codes ) ) {
return $this->error_codes[ $code ];
}
return 'error';
}
}
}