Since there is only one possible kind of error (at least for now) I'd prefer to be explicit. Please change hasError() to isContextLost()