⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.94
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
hrms.dev-unit.com
/
app
/
Xendit
/
Exceptions
/
View File Name :
ApiException.php
<?php /** * ApiException.php * php version 7.2.0 * * @category Exception * @package Xendit\Exceptions * @author Ellen <ellen@xendit.co> * @license https://opensource.org/licenses/MIT MIT License * @link https://api.xendit.co */ namespace App\Xendit\Exceptions; /** * Class ApiException * * @category Exception * @package Xendit\Exceptions * @author Ellen <ellen@xendit.co> * @license https://opensource.org/licenses/MIT MIT License * @link https://api.xendit.co */ class ApiException extends \Exception implements ExceptionInterface { protected $errorCode; /** * Get error code for the exception instance * * @return string */ public function getErrorCode() { return $this->errorCode; } /** * Create new instance of ApiException * * @param string $message corresponds to message field in Xendit's HTTP error * @param string $code corresponds to http status in Xendit's HTTP response * @param string $errorCode corresponds to error_code field in Xendit's HTTP * error */ public function __construct($message, $code, $errorCode) { if (!$message) { throw new $this('Unknown '. get_class($this)); } parent::__construct($message, $code); $this->errorCode = $errorCode; } }