-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69fa89a
commit 5559853
Showing
5 changed files
with
130 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
dotCMS/src/main/java/com/dotcms/jobs/business/error/JobProcessorInstantiationException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.dotcms.jobs.business.error; | ||
|
||
import com.dotcms.jobs.business.processor.JobProcessor; | ||
|
||
/** | ||
* Exception thrown when an error occurs while attempting to instantiate a new JobProcessor. | ||
*/ | ||
public class JobProcessorInstantiationException extends RuntimeException{ | ||
|
||
/** | ||
* Constructs a new JobProcessorInstantiationException with the specified processor class and cause. | ||
* | ||
* @param processorClass The class of the JobProcessor that could not be instantiated | ||
* @param cause The underlying cause of the error (can be null) | ||
*/ | ||
public JobProcessorInstantiationException(Class<? extends JobProcessor> processorClass, Throwable cause) { | ||
super("Failed to instantiate a new JobProcessor out of the provided class: " + processorClass.getName(), cause); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.