Skip to content

Commit

Permalink
Added documentation for base.WrappedException (#24200)
Browse files Browse the repository at this point in the history
add a docstring for WrappedException
  • Loading branch information
Aida El Kouri authored and Sacha0 committed Nov 22, 2017
1 parent 80d8719 commit b18ff77
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 0 additions & 2 deletions base/boot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,6 @@ struct AssertionError <: Exception
end
AssertionError() = AssertionError("")

#Generic wrapping of arbitrary exceptions
#Subtypes should put the exception in an 'error' field
abstract type WrappedException <: Exception end

struct LoadError <: WrappedException
Expand Down
9 changes: 9 additions & 0 deletions base/docs/basedocs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,15 @@ Generic error type. The error message, in the `.msg` field, may provide more spe
"""
ErrorException

"""
WrappedException(msg)
Generic type for `Exception`s wrapping another `Exception`, such as `LoadError` and
`InitError`. Those exceptions contain information about the the root cause of an
exception. Subtypes define a field `error` containing the causing `Exception`.
"""
Core.WrappedException

"""
UndefRefError()
Expand Down

0 comments on commit b18ff77

Please sign in to comment.