Both enums seem to be have the same, or nearly the same, scope. We do not need both. We may or may want to find another solution that would be extensible. I would suggest something like an interface
public interface ValidationError {
String name():
}
and then a package that we open (module) with predefined classes for common error types.
This would make it easy for people to define custom error types.
Both enums seem to be have the same, or nearly the same, scope. We do not need both. We may or may want to find another solution that would be extensible. I would suggest something like an interface
and then a package that we open (module) with predefined classes for common error types.
This would make it easy for people to define custom error types.