forked from verdnatura/hedera-web
31 lines
538 B
PHP
31 lines
538 B
PHP
|
<?php
|
||
|
|
||
|
namespace Vn\Rest;
|
||
|
|
||
|
/**
|
||
|
* Class used to store information about errors, warnings and info messages.
|
||
|
*
|
||
|
* @property string $domain The domain name
|
||
|
* @property string $code The code of message
|
||
|
* @property string $message The message string
|
||
|
**/
|
||
|
class Exception extends \Exception
|
||
|
{
|
||
|
protected $domain;
|
||
|
protected $code;
|
||
|
|
||
|
function __construct ($domain, $code, $message)
|
||
|
{
|
||
|
parent::__construct ($message, $code);
|
||
|
$this->domain = $domain;
|
||
|
$this->code = $code;
|
||
|
}
|
||
|
|
||
|
function getDomain ()
|
||
|
{
|
||
|
return $this->domain;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
?>
|