Initialize a newly created severity with the given names.
const ErrorSeverity(this.name, this.weight, this.displayName);