You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an unexpected exception occurs with an code => ... inline script, the plugin catches everything due rescue Exception.
This isn't ideal as it will also catch any serious java.lang.Error throwables such as OutOfMemoryError and recover from them.
The issue only concerns inline script, path => ... script reach a defaultrescue => e form and thus won't recover from errors.
History shows there might not have been a clear intent to rescue "everything", rescue Exception dates back to the (1.0.0) initial support for recovering from Ruby exceptions. Which than got refactored (probably to keep compatibility) with the addition of file based scripting.
The text was updated successfully, but these errors were encountered:
When an unexpected exception occurs with an
code => ...
inline script, the plugin catches everything duerescue Exception
.This isn't ideal as it will also catch any serious
java.lang.Error
throwables such asOutOfMemoryError
and recover from them.The issue only concerns inline script,
path => ...
script reach a defaultrescue => e
form and thus won't recover from errors.History shows there might not have been a clear intent to rescue "everything",
rescue Exception
dates back to the (1.0.0) initial support for recovering from Ruby exceptions. Which than got refactored (probably to keep compatibility) with the addition of file based scripting.The text was updated successfully, but these errors were encountered: