Skip to content

Detect error code collisions #3

@jhnns

Description

@jhnns

Within the same application, there should not be more than one error class associated with a given error code. Erroz should detect these collisions and throw an error.

var FileNotFound = erroz({
    code: "not-found"
});
// Should throw an Duplicate error code error
var UserNotFound = erroz({
    code: "not-found"
});

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