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);
}