Skip to content

Many Exception subtypes don't accept an error message #14600

@ssfrr

Description

@ssfrr

Some error types, like ErrorException and ArgumentError accept a string argument, but others (e.g. the ones defined in boot.jl do not.

Would a PR be accepted that added optional message fields to these error types? I came across this when throwing an InexactError and wanting to describe why the given value didn't fit into my type.

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