public static function raise($message, $code = null)
{
if (empty(self::$errors)) {
add_action('admin_notices', array(__NAMESPACE__ . '\\Incorrect_Syntax_Exception', 'print_errors'));
}
$exception = new self($message, $code);
if (self::$throw_errors) {
throw $exception;
} else {
self::$errors[] = $exception;
}
}