QuickPay_API_Exception

The WooCommerce QuickPay QuickPay API Exception class.

Defined (1)

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

/classes/woocommerce-quickpay-exceptions.php  
  1. class QuickPay_API_Exception extends QuickPay_Exception  
  2. {  
  3. /** 
  4. * write_to_logs function. 
  5. *  
  6. * Stores the exception dump in the WooCommerce system logs 
  7. * @access public 
  8. * @return void 
  9. */  
  10. public function write_to_logs()  
  11. $this->log->separator(); 
  12. $this->log->add( 'QuickPay API Exception file: ' . $this->getFile() ); 
  13. $this->log->add( 'QuickPay API Exception line: ' . $this->getLine() ); 
  14. $this->log->add( 'QuickPay API Exception code: ' . $this->getCode() ); 
  15. $this->log->add( 'QuickPay API Exception message: ' . $this->getMessage() ); 
  16.  
  17. if( ! empty($this->curl_request_url)) { 
  18. $this->log->add( 'QuickPay API Exception Request URL: ' . $this->curl_request_url); 
  19. }  
  20.  
  21. if( ! empty($this->curl_request_data)) { 
  22. $this->log->add( 'QuickPay API Exception Request DATA: ' . $this->curl_request_data); 
  23.  
  24. if( ! empty($this->curl_response_data)) { 
  25. $this->log->add( 'QuickPay API Exception Response DATA: ' . $this->curl_response_data); 
  26.  
  27. $this->log->separator(); 
  28.