Skip to content

have a single bad index error type? #25005

@StefanKarpinski

Description

@StefanKarpinski

We currently have BoundsError (not exported), KeyError (exported) and with #24999 StringIndexError (exported), where I noted that it might be nice to have a single shared exception type for "bad indexing value", whether the thing you're indexing into is an array, a dict or a string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    error handlingHandling of exceptions by Julia or the user

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions