Add LogEntryIncompleteException for malformed v2 entries
This commit is contained in:
@@ -98,3 +98,25 @@ class ApiValidationException extends Exception {
|
|||||||
parent::__construct($message, $code, $previous);
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user