-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DOCS] Documentation for FieldError exception #54842
Conversation
93d2cec
to
e23a310
Compare
0f0b91c
to
60c623f
Compare
@LilithHafner Added docs for |
Is user code allowed/encouraged to throw |
User code wouldn't need to throw But for internal use cases User can still raise FieldError (not encouraged), if there is a rare case you would want to do that. Wrapped exception is more apt approach for such cases rather. In any case it is allowed with current infrastructure. |
base/docs/basedocs.jl
Outdated
|
||
!!! compat "Julia 1.12" | ||
ErrorException should no longer be used to raise exceptions for invalid field access. Use FieldError instead. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!!! compat "Julia 1.12" | |
ErrorException should no longer be used to raise exceptions for invalid field access. Use FieldError instead. |
This compat annotation belongs in the FieldError docstring
FieldError was introduced in JuliaLang#54504. This PR adds documentation for the same. add types to signature in docs Co-Authored-By: Neven Sajko <[email protected]> Co-authored-by: Lilith Orion Hafner <[email protected]>
Thanks! |
FieldError was introduced in #54504. This PR adds documentation for the same.
Fixes #54830