2015-01-23 13:09:30 +00:00
|
|
|
<?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)
|
|
|
|
{
|
2015-01-31 01:05:12 +00:00
|
|
|
parent::__construct ($message);
|
2015-01-23 13:09:30 +00:00
|
|
|
$this->domain = $domain;
|
|
|
|
$this->code = $code;
|
|
|
|
}
|
|
|
|
|
|
|
|
function getDomain ()
|
|
|
|
{
|
|
|
|
return $this->domain;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|