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"
});
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.