From 93b934c5ccabf46b0dd9dc5984d6254917c3ceb3 Mon Sep 17 00:00:00 2001 From: Keith Solomon Date: Mon, 3 Aug 2026 12:56:32 -0500 Subject: [PATCH] Add LogEntryIncompleteException for malformed v2 entries --- includes/exceptions.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/includes/exceptions.php b/includes/exceptions.php index 03844ce..5b07577 100644 --- a/includes/exceptions.php +++ b/includes/exceptions.php @@ -98,3 +98,25 @@ class ApiValidationException extends Exception { parent::__construct($message, $code, $previous); } } + +/** + * Exception thrown when a log entry is missing required data fields. + * + * @category Exception + * @package TornVaultTracker + * @author Keith Solomon + * @license Unlicense https://unlicense.org/ + * @link https://github.com/ksolomon/Torn-Vault-Tracker + */ +class LogEntryIncompleteException extends Exception { + /** + * Constructor. + * + * @param string $message The exception message. + * @param int $code The exception code. + * @param Throwable $previous The previous throwable. + */ + public function __construct($message, $code = 0, Throwable $previous = null) { + parent::__construct($message, $code, $previous); + } +}