Skip to content

try/catch/break/finally doesn't reset exception stack #31766

Closed
@vtjnash

Description

@vtjnash
julia> let
           for i = 1:2
               try
                   throw("No, I am not the cause of your misery")
               catch
                   break
               finally
               end
           end
           error("HI")
       end
ERROR: HI
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] top-level scope at ./REPL[8]:10
caused by [exception 1]
"No, I am not the cause of your misery"
Stacktrace:
 [1] top-level scope at ./REPL[8]:4

Metadata

Metadata

Assignees

No one assigned

    Labels

    error handlingHandling of exceptions by Julia or the user

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions