org.xcmis.search.lucene.content
Interface ErrorReporter

All Known Implementing Classes:
ErrorReporterImpl

public interface ErrorReporter

Error reporter hold all error messages placed by ANTLR lexer and parser. Created by The eXo Platform SAS Author : Sergey Karpenko

Version:
$Id: ErrorReporter.java 2 2010-02-04 17:21:49Z andrew00x $

Method Summary
 void clear()
          Clear all message and exceptions lists.
 org.xcmis.search.InvalidQueryException getException()
          Return all error messages as a single InvalidQueryException.
 boolean hasErrors()
          Return true if ErrorReporter hold any error message.
 void reportException(Exception e)
          Save exception.
 void reportMessage(String msg)
          Save error message in ErrorReporter.
 

Method Detail

getException

org.xcmis.search.InvalidQueryException getException()
Return all error messages as a single InvalidQueryException.

Returns:
InvalidQueryException.

hasErrors

boolean hasErrors()
Return true if ErrorReporter hold any error message.

Returns:
boolean

reportMessage

void reportMessage(String msg)
Save error message in ErrorReporter.

Parameters:
msg - Error message.

reportException

void reportException(Exception e)
Save exception.

Parameters:
e - Exception

clear

void clear()
Clear all message and exceptions lists.



Copyright © 2010 eXo Platform SAS. All Rights Reserved.