Concept Flow - Exception hierarchy
Start
Raise Exception
Check Exception Type
Is it StandardError?
Yes→Handle StandardError
Is it Exception?
Yes→Handle Exception
Unhandled Exception
End
When an exception is raised, Ruby checks its type against the hierarchy from StandardError down to Exception, handling it if matched or leaving unhandled otherwise.