Distinguishing different types of exception #1
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: simon/post-scarcity#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In order to selectively catch exceptions, we've got to be able to distinguish between them. Which means we need to pass an identifier — a number or a symbolic tag — as well as a message and a frame pointer.
Which means an exception cannot fit into a single cons space object.
Solutions
EXEP, which points to a stack frame and anEXDTobject;EXDT, which points to a string and holds a numericexeption-typeid.