Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
docs
  • Loading branch information
arhik committed Jul 31, 2024
1 parent ec81203 commit ac4f496
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions base/docs/basedocs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1698,6 +1698,35 @@ Stacktrace:
"""
FieldError

"""
PropertyError(type::DataType, field::Symbol)
An operation tried to access invalid `property` of `type`.
!!! compat "Julia 1.12"
Prior to Julia 1.12, invalid field access threw an [`ErrorException`](@ref)
See [`getfield`, `FieldError``](@ref)
# Examples
```jldoctest
julia> struct AB
a::Float32
b::Float64
end
julia> ab = AB(1, 3)
AB(1.0f0, 3.0)
julia> ab.c # field `c` doesn't exist
ERROR: PropertyError: instance of `AB`` has no property `c`
Stacktrace:
[...]
```
"""
PropertyError


"""
WrappedException(msg)
Expand Down
1 change: 1 addition & 0 deletions doc/src/base/base.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ Core.DomainError
Base.EOFError
Core.ErrorException
Core.FieldError
Core.PropertyError
Core.InexactError
Core.InterruptException
Base.KeyError
Expand Down

0 comments on commit ac4f496

Please sign in to comment.