Expose Command/Context from exceptions where possible (#204)

* Expose Command/Context from exceptions where possible

* Update changelog
This commit is contained in:
Jason 2021-01-11 15:25:05 -08:00 committed by Alexander Söderberg
parent a6f8159410
commit 7347ced0db
7 changed files with 68 additions and 7 deletions

View file

@ -120,7 +120,7 @@ class MethodCommandExecutionHandler<C> implements CommandExecutionHandler<C> {
} catch (final Error e) {
throw e;
} catch (final Throwable throwable) {
throw new CommandExecutionException(throwable);
throw new CommandExecutionException(throwable, commandContext);
}
}