Initialize errors and uses your custom errors.
static initErrors(Map<Object, Failure> errors) => _errors = errors;