just-ai/jaicf-kotlin

ActionErrorHook cannot prevent exception from throwing

Denire opened this issue · 1 comments

ActionErrorHook is a hook invoked on action error. But use case for this hook looks a bit unclear.

Having error, user might want to handle this error, but hook does not allow error handling. It only allows to react in some way to error, while further processing in BotEngine will be aborted.

@morfeusys maybe we should create ActionErrorHandler instead of ActionErrorHook?

@Denire maybe it's better to fix an implementation of BotEngine that should to work with this type of hook the same way as with others?