dvadf
File manager - Edit - /home/centroca/public_html/Exceptions.tar
Back
OAuthException.php 0000644 00000000535 15253151724 0010164 0 ustar 00 <?php if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Freemius_Exception' ) ) { exit; } if ( ! class_exists( 'Freemius_OAuthException' ) ) { class Freemius_OAuthException extends Freemius_Exception { public function __construct( $pResult ) { parent::__construct( $pResult ); } } } EmptyArgumentException.php 0000644 00000000461 15253151724 0011743 0 ustar 00 <?php if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Freemius_InvalidArgumentException' ) ) { exit; } if ( ! class_exists( 'Freemius_EmptyArgumentException' ) ) { class Freemius_EmptyArgumentException extends Freemius_InvalidArgumentException { } } Exception.php 0000644 00000003461 15253151724 0007224 0 ustar 00 <?php if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Freemius_Exception' ) ) { /** * Thrown when an API call returns an exception. * */ class Freemius_Exception extends Exception { protected $_result; protected $_type; protected $_code; /** * Make a new API Exception with the given result. * * @param array $result The result from the API server. */ public function __construct( $result ) { $this->_result = $result; $code = 0; $message = 'Unknown error, please check GetResult().'; $type = ''; if ( isset( $result['error'] ) && is_array( $result['error'] ) ) { if ( isset( $result['error']['code'] ) ) { $code = $result['error']['code']; } if ( isset( $result['error']['message'] ) ) { $message = $result['error']['message']; } if ( isset( $result['error']['type'] ) ) { $type = $result['error']['type']; } } $this->_type = $type; $this->_code = $code; parent::__construct( $message, is_numeric( $code ) ? $code : 0 ); } /** * Return the associated result object returned by the API server. * * @return array The result from the API server */ public function getResult() { return $this->_result; } public function getStringCode() { return $this->_code; } public function getType() { return $this->_type; } /** * To make debugging easier. * * @return string The string representation of the error */ public function __toString() { $str = $this->getType() . ': '; if ( $this->code != 0 ) { $str .= $this->getStringCode() . ': '; } return $str . $this->getMessage(); } } } InvalidArgumentException.php 0000644 00000000424 15253151724 0012232 0 ustar 00 <?php if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Freemius_Exception' ) ) { exit; } if ( ! class_exists( 'Freemius_InvalidArgumentException' ) ) { class Freemius_InvalidArgumentException extends Freemius_Exception { } } index.php 0000644 00000000127 15253151724 0006371 0 ustar 00 <?php // Silence is golden. // Hide file structure from users on unprotected servers. ArgumentNotExistException.php 0000644 00000000467 15253151724 0012430 0 ustar 00 <?php if ( ! defined( 'ABSPATH' ) ) { exit; } if ( ! class_exists( 'Freemius_InvalidArgumentException' ) ) { exit; } if ( ! class_exists( 'Freemius_ArgumentNotExistException' ) ) { class Freemius_ArgumentNotExistException extends Freemius_InvalidArgumentException { } }
dvadf
dvadf
| ver. 1.4 |
Github
|
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings