Skip to content

DeniedAlwaysException should not extend DeniedException #154

@bpappin

Description

@bpappin

When DeniedAlwaysException extends DeniedException, the exceptions must be caught in the correct order, with DeniedAlwaysException always first, because DeniedAlwaysException is also a DeniedException and if it's first in the catch stack, the DeniedAlwaysException block will never be called.

The solution is to have them each extend Exception instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions