As people noticed, Revit .NET API has inconsistencies here and there. The DatumPlane.HideBubbleInView() has one.
When it's called, without good reasons, the following confusing exception could be thrown out:
"Autodesk.Revit.Exceptions.ArgumentException: The datum plane cannot be visible in the view.
Parameter name: view
at Autodesk.Revit.DB.DatumPlane.HideBubbleInView(DatumEnds datumEnd, View view)"
Tried to figure what could exactly cause it to appear but failed. As understood, the DatumPlane.HideBubbleInView() was supposed to hide a grid bubble in a view, but the exception seemed to indicate something totally different, the method trying to make the bubble visible in the view.
As always, we had to wrap the call into a try/catch block to avoid the whole process being interrupted. So, as many experienced, Revit .NET API programming is nothing more than try/catch!