Package org.gvsig.gpe.lib.impl.parser
Class GPEErrorHandler
java.lang.Object
org.gvsig.gpe.lib.impl.parser.GPEErrorHandler
- All Implemented Interfaces:
IGPEErrorHandler
This class is a common implementation for all
the application error handlers.
- Author:
- Jorge Piera LLodrá (jorge.piera@iver.es), Carlos Sánchez Periñán (sanchez_carper@gva.es)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidgetErrorAt(int i) Get a errorintgetWarningAt(int i) Get a warningint
-
Constructor Details
-
GPEErrorHandler
public GPEErrorHandler()
-
-
Method Details
-
addError
- Specified by:
addErrorin interfaceIGPEErrorHandler
-
addWarning
- Specified by:
addWarningin interfaceIGPEErrorHandler
-
getErrorsSize
public int getErrorsSize()- Specified by:
getErrorsSizein interfaceIGPEErrorHandler- Returns:
- the errors size
-
getWarningsSize
public int getWarningsSize()- Specified by:
getWarningsSizein interfaceIGPEErrorHandler- Returns:
- the warnings size
-
getErrorAt
Get a error- Specified by:
getErrorAtin interfaceIGPEErrorHandler- Parameters:
i- Error position- Returns:
- The exception
-
getWarningAt
Get a warning- Specified by:
getWarningAtin interfaceIGPEErrorHandler- Parameters:
i- Warning position- Returns:
- The warning exception
-