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)
IGPEErrorHandler
addError
in interface IGPEErrorHandler
e
- The detected exceptionpublic void addWarning(Throwable e)
IGPEErrorHandler
addWarning
in interface IGPEErrorHandler
e
- The detected exceptionpublic int getErrorsSize()
getErrorsSize
in interface IGPEErrorHandler
public int getWarningsSize()
getWarningsSize
in interface IGPEErrorHandler
public Throwable getErrorAt(int i)
getErrorAt
in interface IGPEErrorHandler
i
- Error positionpublic Throwable getWarningAt(int i)
getWarningAt
in interface IGPEErrorHandler
i
- Warning position