JuliaInterop / JavaCall.jl

Call Java from Julia
http://juliainterop.github.io/JavaCall.jl
Other
118 stars 53 forks source link

some slightly better error handling #78

Closed ExpandingMan closed 5 years ago

ExpandingMan commented 5 years ago

This was done quickly and without much care, but I added a JavaCallError and replaced most of the error calls with throw(JavaCallError(str)).

This should fix the issue where @error wasn't throwing errors in the places where originally intended and also do a tiny bit to pave the way for more proper error handling (i.e. coexistence of Julia and Java errors).