phenopackets / phenopacket-tools

An app and library for building, conversion, and validation of GA4GH Phenopackets.
http://phenopackets.org/phenopacket-tools/stable/
GNU General Public License v3.0
12 stars 5 forks source link

ErrorType vs ValidationAspect #72

Closed pnrobinson closed 2 years ago

pnrobinson commented 2 years ago

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.

pnrobinson commented 2 years ago

stale