Package interlok.csv.schema
Class FailOnError
java.lang.Object
interlok.csv.schema.FailOnError
- All Implemented Interfaces:
SchemaViolationHandler
If there are any
ErrorMessage objects present then throw an exception.-
Nested Class Summary
Nested classes/interfaces inherited from interface interlok.csv.schema.SchemaViolationHandler
SchemaViolationHandler.FailureType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(Collection<uk.gov.nationalarchives.csv.validator.api.java.FailMessage> failures, AdaptrisMessage msg) Handle any schema violations.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface interlok.csv.schema.SchemaViolationHandler
toString
-
Constructor Details
-
FailOnError
public FailOnError()
-
-
Method Details
-
handle
public void handle(Collection<uk.gov.nationalarchives.csv.validator.api.java.FailMessage> failures, AdaptrisMessage msg) throws ServiceException Description copied from interface:SchemaViolationHandlerHandle any schema violations.- Specified by:
handlein interfaceSchemaViolationHandler- Parameters:
failures- the failures representing the violations, non-null.msg- the adaptris message- Throws:
ServiceException
-