[ticket/5] Errors grouped by error level

See #5