public String toString(){
  StringBuffer buffer=new StringBuffer();
  if (override > 0) {
    buffer.append("Override " + override + ": ");
    if (lineno > 0)     buffer.append("Line " + lineno + ": ");
  }
 else {
    if (locationName == null && lineno > 0) {
      buffer.append("Line " + lineno + ": ");
    }
 else     if (locationName != null) {
      buffer.append(locationName + ":");
      if (lineno > 0)       buffer.append(lineno + ": ");
    }
  }
  buffer.append(description);
  return buffer.toString();
}

public String toString ( ) { StringBuffer buffer = new StringBuffer ( ) ; if ( override > 0 ) { buffer . append ( "Override " + override + ": " ) ; if ( lineno > 0 ) buffer . append ( "Line " + lineno + ": " ) ; } else { if ( locationName == null && lineno > 0 ) { buffer . append ( "Line " + lineno + ": " ) ; } else if ( locationName != null ) { buffer . append ( locationName + ":" ) ; if ( lineno > 0 ) buffer . append ( lineno + ": " ) ; } } buffer . append ( description ) ; return buffer . toString ( ) ; }
returns a string representation of this error .
