diff --git a/src/Exceptions/WebhookFailed.php b/src/Exceptions/WebhookFailed.php index 00dda9e..a1c68e7 100644 --- a/src/Exceptions/WebhookFailed.php +++ b/src/Exceptions/WebhookFailed.php @@ -27,6 +27,11 @@ public static function missingType(Request $request) return new static('The webhook call did not contain a type. Valid OhDear webhook calls should always contain a type.'); } + public static function jobClassDoesNotExist($jobClass, $ohDearWebhookCall) + { + return new static('The '. $jobClass .' class does not exist.'); + } + public function render($request) { return response(['error' => $this->getMessage()], 400);