ErrorCategory constructor Null safety

ErrorCategory()