hasError method

bool hasError()

Implementation

bool hasError(){
  return error != null;
}