Function checkError

bool checkError(
  string context = "",
  string functionName = __FUNCTION__,
  int line = __LINE__
);