ErrorCode constructor Null safety

ErrorCode()