|
@@ 403-405 (lines=3) @@
|
| 400 |
|
*/ |
| 401 |
|
public function format_error_code($code=false){ |
| 402 |
|
switch ( $code ) { |
| 403 |
|
case '101' : |
| 404 |
|
$error = array( 'error' => esc_html__( 'Invalid API License Key. Login to your My Account page to find a valid API License Key', $this->product_slug ), 'code' => '101' ); |
| 405 |
|
break; |
| 406 |
|
case '102' : |
| 407 |
|
$error = array( 'error' => esc_html__( 'Software has been deactivated', $this->product_slug ), 'code' => '102' ); |
| 408 |
|
break; |
|
@@ 406-408 (lines=3) @@
|
| 403 |
|
case '101' : |
| 404 |
|
$error = array( 'error' => esc_html__( 'Invalid API License Key. Login to your My Account page to find a valid API License Key', $this->product_slug ), 'code' => '101' ); |
| 405 |
|
break; |
| 406 |
|
case '102' : |
| 407 |
|
$error = array( 'error' => esc_html__( 'Software has been deactivated', $this->product_slug ), 'code' => '102' ); |
| 408 |
|
break; |
| 409 |
|
case '103' : |
| 410 |
|
$error = array( 'error' => esc_html__( 'Exceeded maximum number of activations', $this->product_slug ), 'code' => '103' ); |
| 411 |
|
break; |
|
@@ 409-411 (lines=3) @@
|
| 406 |
|
case '102' : |
| 407 |
|
$error = array( 'error' => esc_html__( 'Software has been deactivated', $this->product_slug ), 'code' => '102' ); |
| 408 |
|
break; |
| 409 |
|
case '103' : |
| 410 |
|
$error = array( 'error' => esc_html__( 'Exceeded maximum number of activations', $this->product_slug ), 'code' => '103' ); |
| 411 |
|
break; |
| 412 |
|
case '104' : |
| 413 |
|
$error = array( 'error' => esc_html__( 'Invalid Instance ID', $this->product_slug ), 'code' => '104' ); |
| 414 |
|
break; |
|
@@ 412-414 (lines=3) @@
|
| 409 |
|
case '103' : |
| 410 |
|
$error = array( 'error' => esc_html__( 'Exceeded maximum number of activations', $this->product_slug ), 'code' => '103' ); |
| 411 |
|
break; |
| 412 |
|
case '104' : |
| 413 |
|
$error = array( 'error' => esc_html__( 'Invalid Instance ID', $this->product_slug ), 'code' => '104' ); |
| 414 |
|
break; |
| 415 |
|
case '105' : |
| 416 |
|
$error = array( 'error' => esc_html__( 'Invalid API License Key', $this->product_slug ), 'code' => '105' ); |
| 417 |
|
break; |
|
@@ 415-417 (lines=3) @@
|
| 412 |
|
case '104' : |
| 413 |
|
$error = array( 'error' => esc_html__( 'Invalid Instance ID', $this->product_slug ), 'code' => '104' ); |
| 414 |
|
break; |
| 415 |
|
case '105' : |
| 416 |
|
$error = array( 'error' => esc_html__( 'Invalid API License Key', $this->product_slug ), 'code' => '105' ); |
| 417 |
|
break; |
| 418 |
|
case '106' : |
| 419 |
|
$error = array( 'error' => esc_html__( 'Subscription Is Not Active', $this->product_slug ), 'code' => '106' ); |
| 420 |
|
break; |
|
@@ 418-420 (lines=3) @@
|
| 415 |
|
case '105' : |
| 416 |
|
$error = array( 'error' => esc_html__( 'Invalid API License Key', $this->product_slug ), 'code' => '105' ); |
| 417 |
|
break; |
| 418 |
|
case '106' : |
| 419 |
|
$error = array( 'error' => esc_html__( 'Subscription Is Not Active', $this->product_slug ), 'code' => '106' ); |
| 420 |
|
break; |
| 421 |
|
default : |
| 422 |
|
$error = array( 'error' => esc_html__( 'Invalid Request', $this->product_slug ), 'code' => '100' ); |
| 423 |
|
break; |