public final class ErrorEventHandlerGenerator extends Object
Modifier and Type | Method and Description |
---|---|
static SpecMethodModel<EventMethod,EventDeclarationModel> |
generateErrorEventHandlerDefinition()
Generate a spec method model which corresponds to a source error declaration like this:
|
static boolean |
hasOnErrorDelegateMethod(ImmutableList<SpecMethodModel<DelegateMethod,Void>> delegateMethods)
Check whether the delegate methods contain an
@OnError declaration. |
public static SpecMethodModel<EventMethod,EventDeclarationModel> generateErrorEventHandlerDefinition()
@OnEvent(ErrorEvent.class)
static void __internalOnErrorEvent(ComponentContext c, @FromEvent Exception exception) {}
This is used to automatically generate this method stub when an @OnError
declaration is used.public static boolean hasOnErrorDelegateMethod(ImmutableList<SpecMethodModel<DelegateMethod,Void>> delegateMethods)
@OnError
declaration.