Skip to content

Commit

Permalink
minorclean aot exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaTP committed Aug 19, 2024
1 parent 88151d2 commit cbb0b6e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions aot/src/main/java/com/dylibso/chicory/aot/AotMachine.java
Original file line number Diff line number Diff line change
Expand Up @@ -355,10 +355,8 @@ public Value[] call(int funcId, Value[] args) throws ChicoryException {
throw new ChicoryException("call stack exhausted", e);
} catch (IndexOutOfBoundsException e) {
throw new WASMRuntimeException("undefined element " + e.getMessage(), e);
} catch (Exception e) {
throw new WASMRuntimeException("An underlying Java exception occurred", e);
} catch (Throwable e) {
throw new WASMRuntimeException("An underlying Java error occurred", e);
throw new WASMRuntimeException("An underlying Java exception occurred", e);
}
}

Expand Down

0 comments on commit cbb0b6e

Please sign in to comment.