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