-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed as not planned
Labels
error handlingHandling of exceptions by Julia or the userHandling of exceptions by Julia or the user
Milestone
Description
I've just been in contact with a new user, who was understandably using throw("my message") rather than throwing an ErrorException via error().
Do we need the conceptual overhead of having both error and throw? Why not conceptually have the following definitions:
throw(msg::AbstractString) = throw(ErrorException(msg))
throw(e::Exception) = builtin_throw(e)A somewhat related question - what do we gain by allowing people to throw things which aren't subtypes of Exception?
andyferris, s-celles, HarrisonGrodin, rofinn, omus and 5 moreyuyichao and ararslan
Metadata
Metadata
Assignees
Labels
error handlingHandling of exceptions by Julia or the userHandling of exceptions by Julia or the user