Metaregistrar\EPP\eppException::__construct PHP Method

__construct() public method

eppException constructor.
public __construct ( string $message = "", integer $code, Exception $previous = null, string $reason = null, string $command = null )
$message string
$code integer
$previous Exception
$reason string
$command string
    public function __construct($message = "", $code = 0, \Exception $previous = null, $reason = null, $command = null)
    {
        $this->reason = $reason;
        $trace = $this->getTrace();
        $this->class = $trace[0]['class'];
        if ($command) {
            /* @var $class \Metaregistrar\EPP\eppRequest */
            $this->lastcommand = $command;
        }
        parent::__construct($message, $code, $previous);
    }