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
The rethrown condition inherits the classes of the condition argument
but belongs to an additional rethrow* class to make it easy to recognize
as rethrown condition and to extract the additional information like
call.stack, original (wrapped) condition, custom error number...
aryoda
changed the title
Provide functions to rethrow conditions while keeping the original condition and call stack
Provide function to rethrow conditions while keeping the original condition and call stack
Jun 9, 2018
I think it is impossible to implement this in a lean way currently for error conditions since they cannot be silenced and always bubble-up to all handlers for that.
"Rethrow" would require to silence the error and throw another condition instead.
I tend to reject these feature request (even I love the idea behind it quite well - at least for application programming with user interfaces)...
Use cases:
Mainly important for errors and warnings...
Possible signature:
rethrow <- function(condition, message = condition.msg, custom.class, ...)
The rethrown condition inherits the classes of the
condition
argumentbut belongs to an additional rethrow* class to make it easy to recognize
as rethrown condition and to extract the additional information like
call.stack, original (wrapped) condition, custom error number...
See also:
The text was updated successfully, but these errors were encountered: