question: public String reportError ( XMLLocator location , String domain , String key , Object [ ] arguments , short severity , Exception exception ) throws XNIException { MessageFormatter messageFormatter = getMessageFormatter ( domain ) ; String message ; if ( messageFormatter != null ) { message = messageFormatter . formatMessage ( fLocale , key , arguments ) ; } else { StringBuffer str = new StringBuffer ( ) ; str . append ( domain ) ; str . append ( '#' ) ; str . append ( key ) ; int argCount = arguments != null ? arguments . length : 0 ; if ( argCount > 0 ) { str . append ( '?' ) ; for ( int i = 0 ; i < argCount ; i ++ ) { str . append ( arguments [ i ] ) ; if ( i < argCount - 1 ) { str . append ( '&' ) ; } } } message = str . toString ( ) ; } XMLParseException parseException = ( exception != null ) ? new XMLParseException ( location , message , exception ) : new XMLParseException ( location , message ) ; XMLErrorHandler errorHandler = fErrorHandler ; if ( errorHandler == null ) { if ( fDefaultErrorHandler == null ) { fDefaultErrorHandler = new DefaultErrorHandler ( ) ; } errorHandler = fDefaultErrorHandler ; } switch ( severity ) { case SEVERITY_WARNING : { errorHandler . warning ( domain , key , parseException ) ; break ; } case SEVERITY_ERROR : { errorHandler . error ( domain , key , parseException ) ; break ; } case SEVERITY_FATAL_ERROR : { errorHandler . fatalError ( domain , key , parseException ) ; if ( ! fContinueAfterFatalError ) { throw parseException ; } break ; } } return message ; }
target:  Reports an error at a specific location.