function __construct($message)
 {
     // add referer and user agent info to the exception message
     $details = AssetsManager::getRequestDetails();
     $message .= " ({$details})";
     parent::__construct($message);
 }
 /**
  * String representation of the exception
  *
  * @link http://pl2.php.net/manual/en/exception.tostring.php
  * @return string
  */
 public function __toString()
 {
     $ret = '';
     if (null !== ($e = $this->getOriginal())) {
         $ret .= $e->__toString() . "\n\n";
     }
     $ret .= 'Reported by ' . parent::__toString();
     return $ret;
 }
 function __construct($msg = 'No data to Analyze.')
 {
     parent::__construct($msg);
 }
示例#4
0
 public function __construct($message = self::EXCEPTION_MSG_INVALID_DATA, $code = 0, \Exception $previous = null)
 {
     parent::__construct($message, $code, $previous);
 }
 function __construct($msg = 'No data')
 {
     parent::__construct($msg);
 }
 function __construct()
 {
     parent::__construct('No data received from OneDot.');
 }
 function __construct()
 {
     parent::__construct('Empty key');
 }
 function __construct()
 {
     parent::__construct('Wrong API version', 801);
 }
 function __construct()
 {
     parent::__construct('Invalid name for DataSet');
 }
示例#10
0
 function __construct($msg)
 {
     parent::__construct($msg);
 }
示例#11
0
 function __construct($msg)
 {
     parent::__construct("DB error: {$msg}.");
 }