public class GPEErrorHandler extends Object implements IGPEErrorHandler
| Constructor and Description |
|---|
GPEErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
addError(Throwable e)
This method is invoked when a parser has found
an error that has to stop the reading or the writing
process
|
void |
addWarning(Throwable e)
This method is invoke when a parser has detected a
error, but it is able to manage it by itself
|
Throwable |
getErrorAt(int i)
Get a error
|
int |
getErrorsSize() |
Throwable |
getWarningAt(int i)
Get a warning
|
int |
getWarningsSize() |
public void addError(Throwable e)
IGPEErrorHandleraddError in interface IGPEErrorHandlere - The detected exceptionpublic void addWarning(Throwable e)
IGPEErrorHandleraddWarning in interface IGPEErrorHandlere - The detected exceptionpublic int getErrorsSize()
getErrorsSize in interface IGPEErrorHandlerpublic int getWarningsSize()
getWarningsSize in interface IGPEErrorHandlerpublic Throwable getErrorAt(int i)
getErrorAt in interface IGPEErrorHandleri - Error positionpublic Throwable getWarningAt(int i)
getWarningAt in interface IGPEErrorHandleri - Warning position