Replaced the "details" flag with a type which indicates whether an error record contains an actual error, a warning or just a note.