org.xcmis.search.lucene.content
Class ErrorReporterImpl
java.lang.Object
org.xcmis.search.lucene.content.ErrorReporterImpl
- All Implemented Interfaces:
- ErrorReporter
public class ErrorReporterImpl
- extends Object
- implements ErrorReporter
Error reporter hold all error messages placed by ANTLR lexer and parser.
Created by The eXo Platform SAS Author : Sergey Karpenko
- Version:
- $Id: ErrorReporterImpl.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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ErrorReporterImpl
public ErrorReporterImpl()
getException
public org.xcmis.search.InvalidQueryException getException()
- Return all error messages as a single InvalidQueryException.
- Specified by:
getException in interface ErrorReporter
- Returns:
- InvalidQueryException.
hasErrors
public boolean hasErrors()
- Return true if ErrorReporter hold any error message.
- Specified by:
hasErrors in interface ErrorReporter
- Returns:
- boolean
reportMessage
public void reportMessage(String msg)
- Save error message in ErrorReporter.
- Specified by:
reportMessage in interface ErrorReporter
- Parameters:
msg - Error message.
reportException
public void reportException(Exception e)
- Save exception.
- Specified by:
reportException in interface ErrorReporter
- Parameters:
e - Exception
clear
public void clear()
- Clear all message and exceptions lists.
- Specified by:
clear in interface ErrorReporter
Copyright © 2011 eXo Platform SAS. All Rights Reserved.