Package gov.nasa.pds.tools.label
Class ExceptionContainer
- java.lang.Object
-
- gov.nasa.pds.tools.label.ExceptionContainer
-
- All Implemented Interfaces:
ExceptionHandler
public class ExceptionContainer extends Object implements ExceptionHandler
Implements an exception handler that retains the exceptions in memory.- Author:
- pramirez
-
-
Constructor Summary
Constructors Constructor Description ExceptionContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddException(LabelException exception)Reports an exception encountered during label validation.voidclear()List<LabelException>getExceptions()BooleanhasError()BooleanhasFatal()BooleanhasWarning()
-
-
-
Method Detail
-
clear
public void clear()
-
getExceptions
public List<LabelException> getExceptions()
-
addException
public void addException(LabelException exception)
Description copied from interface:ExceptionHandlerReports an exception encountered during label validation.- Specified by:
addExceptionin interfaceExceptionHandler- Parameters:
exception- the exception encountered
-
hasWarning
public Boolean hasWarning()
-
hasError
public Boolean hasError()
-
hasFatal
public Boolean hasFatal()
-
-