java.lang.Object
org.apache.jena.riot.system.ErrorHandlerFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn error handler that counts errors and warnings. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ErrorHandlerSilent error handler : ignores warnings, throws exceptions for errorsstatic final ErrorHandlerError handler (no warnings) - logs to stdLoggerstatic final ErrorHandlerStandard error handler - logs to stdLoggerstatic final ErrorHandlerStrict error handler - logs to stdLogger - exceptions for warningsstatic final ErrorHandlerSilent, strict error handlerstatic final ErrorHandlerWarning error handler - logs to stdLogger - messages for warnings and some errorsstatic final org.slf4j.Loggerstatic final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorHandlerAn error handler that throws aRiotParseException, hence it exposes the details of errors.static ErrorHandlerAn error handler that throws exceptions in all cases.static ErrorHandlererrorHandlerIgnoreWarnings(org.slf4j.Logger log) An error handler that logs error and fatal messages, but not warningsstatic ErrorHandlerIgnores warnings, throws exceptions for errorsstatic ErrorHandlererrorHandlerStd(org.slf4j.Logger log) An error handler that logs messages, then throws exceptions for errors but not warningsstatic ErrorHandlererrorHandlerStrict(org.slf4j.Logger log) Strict error handler, with loggingstatic ErrorHandlerSilent, strict error handler, no loggingstatic ErrorHandlererrorHandlerWarning(org.slf4j.Logger log) An error handler that logs messages for errors and warnings and attempts to carry onstatic ErrorHandlererrorHandlerWarnOrExceptions(org.slf4j.Logger logger) An error handler that logs warnings and throws exceptions on error and fatal.static ErrorHandlerGet the current default error handlerstatic voidsetDefaultErrorHandler(ErrorHandler errorHandler) Set the current default error handler - use carefully, mainly for use in testing
-
Field Details
-
stdLogger
public static final org.slf4j.Logger stdLogger -
noLogger
public static final org.slf4j.Logger noLogger -
errorHandlerStd
Standard error handler - logs to stdLogger -
errorHandlerNoWarnings
Error handler (no warnings) - logs to stdLogger -
errorHandlerStrict
Strict error handler - logs to stdLogger - exceptions for warnings -
errorHandlerWarn
Warning error handler - logs to stdLogger - messages for warnings and some errors -
errorHandlerNoLogging
Silent error handler : ignores warnings, throws exceptions for errors -
errorHandlerStrictNoLogging
Silent, strict error handler
-
-
Constructor Details
-
ErrorHandlerFactory
public ErrorHandlerFactory()
-
-
Method Details
-
errorHandlerStrictSilent
Silent, strict error handler, no logging -
errorHandlerStrict
Strict error handler, with logging -
errorHandlerStd
An error handler that logs messages, then throws exceptions for errors but not warnings -
errorHandlerIgnoreWarnings
An error handler that logs error and fatal messages, but not warnings -
errorHandlerWarning
An error handler that logs messages for errors and warnings and attempts to carry on -
errorHandlerSimple
Ignores warnings, throws exceptions for errors -
errorHandlerExceptionOnError
An error handler that throws aRiotParseException, hence it exposes the details of errors. -
errorHandlerExceptions
An error handler that throws exceptions in all cases. -
errorHandlerWarnOrExceptions
An error handler that logs warnings and throws exceptions on error and fatal. -
getDefaultErrorHandler
Get the current default error handler -
setDefaultErrorHandler
Set the current default error handler - use carefully, mainly for use in testing
-