tpayTException

Class TException.

Defined (1)

The class is defined in the following location(s).

/includes/lib/src/_class_tpay/exception.php  
  1. class TException extends \Exception 
  2. /** 
  3. * @param string $message error message 
  4. * @param int $code error code 
  5. */ 
  6. public function __construct($message, $code = 0) 
  7. require_once(dirname(__FILE__) . '/util.php'); 
  8.  
  9. $message .= ' in file ' . $this->getFile() . ' line: ' . $this->getLine(); 
  10. Util::log('TException', $message . "\n\n" . $this->getTraceAsString()); 
  11.  
  12. $this->message = $code . ' : ' . $message; 
  13. return $code . ' : ' . $message;