Use ErrorData internally instead of a hash