Class ErrorLoggingJob<EventAtom>
- java.lang.Object
-
- org.eclipse.viatra.transformation.evm.api.Job<EventAtom>
-
- org.eclipse.viatra.transformation.evm.api.CompositeJob<EventAtom>
-
- org.eclipse.viatra.transformation.evm.specific.job.ErrorLoggingJob<EventAtom>
-
public class ErrorLoggingJob<EventAtom> extends CompositeJob<EventAtom>
Composite job for logging any errors that happen in the execution of the composed job.
-
-
Constructor Summary
Constructors Constructor Description ErrorLoggingJob(Job<EventAtom> job)
Composes the given job into an error logging job.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
handleError(Activation<? extends EventAtom> activation, java.lang.Exception exception, Context context)
Called if theJob.execute(org.eclipse.viatra.transformation.evm.api.Activation<? extends EventAtom>, org.eclipse.viatra.transformation.evm.api.Context)
method has thrown an exception to allow jobs to handle their own errors.-
Methods inherited from class org.eclipse.viatra.transformation.evm.api.CompositeJob
execute
-
Methods inherited from class org.eclipse.viatra.transformation.evm.api.Job
getActivationState
-
-
-
-
Method Detail
-
handleError
protected void handleError(Activation<? extends EventAtom> activation, java.lang.Exception exception, Context context)
Description copied from class:Job
Called if theJob.execute(org.eclipse.viatra.transformation.evm.api.Activation<? extends EventAtom>, org.eclipse.viatra.transformation.evm.api.Context)
method has thrown an exception to allow jobs to handle their own errors.- Overrides:
handleError
in classCompositeJob<EventAtom>
-
-