Add LogEntryIncompleteException for malformed v2 entries

This commit is contained in:
Keith Solomon
2026-08-03 12:56:32 -05:00
parent e7ec343be1
commit 93b934c5cc
+22
View File
@@ -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 <ksolomon@gmail.com>
* @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);
}
}