|
Server : LiteSpeed System : Linux quebec.us.hostns.io 5.14.0-687.42.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 27 11:55:12 EDT 2026 x86_64 User : gazetufm ( 1431) PHP Version : 8.1.35 Disable Function : NONE Directory : /home2/gazetufm/public_html/wp/wp-content/plugins/wp-statistics/src/Exception/ | |
|
Path: //home2/gazetufm/public_html/wp/wp-content/plugins/wp-statistics/src/Exception/LogException.php
Size: 634 B
Permissions: 0644
<?php
namespace WP_Statistics\Exception;
use Exception;
use WP_Statistics;
class LogException extends Exception
{
public function __construct($message, $code = 0, Exception $previous = null)
{
parent::__construct($message, $code, $previous);
WP_Statistics::log($this->generateLogMessage($message, $code), 'error');
}
private function generateLogMessage($message, $code)
{
return sprintf(
__('Exception occurred: [Code %d] %s at %s:%d', 'wp-statistics'),
$code,
$message,
$this->getFile(),
$this->getLine()
);
}
}