Skip to content

Commit c91b6da

Browse files
committed
Compat annotations for #28878 (exception stacks).
1 parent 0643b31 commit c91b6da

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

base/error.jl

+3
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ false.
103103
Explicitly passing `task` will return the current exception stack on an
104104
arbitrary task. This is useful for inspecting tasks which have failed due to
105105
uncaught exceptions.
106+
107+
!!! compat "Julia 1.1"
108+
This function requires at least Julia 1.1.
106109
"""
107110
function catch_stack(task=current_task(); include_bt=true)
108111
raw = ccall(:jl_get_excstack, Any, (Any,Cint,Cint), task, include_bt, typemax(Cint))

doc/src/devdocs/ast.md

+3
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ These symbols appear in the `head` field of `Expr`s in lowered form.
158158
Pop the stack of current exceptions back to the state at the associated `enter` when leaving a
159159
catch block. `args[1]` contains the token from the associated `enter`.
160160

161+
!!! compat "Julia 1.1"
162+
`pop_exception` is new in Julia 1.1.
163+
161164
* `inbounds`
162165

163166
Controls turning bounds checks on or off. A stack is maintained; if the first argument of this

doc/src/manual/stacktraces.md

+3
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ ERROR: Whoops!
189189

190190
## Exception stacks and [`catch_stack`](@ref)
191191

192+
!!! compat "Julia 1.1"
193+
Exception stacks requires at least Julia 1.1.
194+
192195
While handling an exception further exceptions may be thrown. It can be useful to inspect all these exceptions to
193196
identify the root cause of a problem. The julia runtime supports this by pushing each exception onto an internal
194197
*exception stack* as it occurs. When the code exits a `catch` normally, any exceptions which were pushed onto the stack

0 commit comments

Comments
 (0)