WS_OK_7.4.33 HEX
HEX
Server: nginx/1.21.4
System: Linux v12674 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: endtheignorance (1014)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v12674/lcalosangeles/public_html/wp-content/plugins/autoupdater/lib/Exception/Response.php
<?php
defined('AUTOUPDATER_LIB') or die;

class AutoUpdater_Exception_Response extends Exception
{
    /**
     * @var mixed
     */
    protected $error_code = 0;
    /**
     * @var string
     */
    protected $error_message = '';

    /**
     * AutoUpdater_Exception_Response constructor.
     *
     * @param string         $message JSON message
     * @param int            $code    HTTP code
     * @param null|Exception $previous
     */
    public function __construct($message = '', $code = 0, $previous = null)
    {
        parent::__construct($message, $code, $previous);
    }

    /**
     * @param int    $code
     * @param string $message
     * @param int    $error_code
     * @param string $error_message
     *
     * @return AutoUpdater_Exception_Response
     */
    public static function getException($code = 0, $message = '', $error_code = 0, $error_message = '')
    {
        $e = new AutoUpdater_Exception_Response($message, $code);
        $e->setError($error_code, $error_message);

        return $e;
    }

    /**
     * @param mixed  $code
     * @param string $message
     *
     * @return $this
     */
    public function setError($code, $message)
    {
        $this->error_code = $code;
        $this->error_message = $message;

        return $this;
    }

    /**
     * @return mixed
     */
    public function getErrorCode()
    {
        return $this->error_code;
    }

    /**
     * @return string
     */
    public function getErrorMessage()
    {
        return $this->error_message;
    }
}