Skip to content

Add exit code to ErrorReturnCode Exception #127

Closed
@NickHowden

Description

@NickHowden

So that a generic handler can be written for ErrorReturnCode_N Exceptions, could the Exception constructor be modified to include the exit_code as an attribute.

i.e. in get_rc_exe

exc = type(name, (ErrorReturnCode, ), {exit_code:rc}

and

exc = type(name, (SignalException, ), {exit_code:rc}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions