java.lang.Object
org.apache.jena.riot.system.ErrorHandlerFactory
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
An error handler that counts errors and warnings. -
Field Summary
Modifier and TypeFieldDescriptionstatic final ErrorHandler
Silent error handler : ignores warnings, throws exceptions for errorsstatic final ErrorHandler
Error handler (no warnings) - logs to stdLoggerstatic final ErrorHandler
Standard error handler - logs to stdLoggerstatic final ErrorHandler
Strict error handler - logs to stdLogger - exceptions for warningsstatic final ErrorHandler
Silent, strict error handlerstatic final ErrorHandler
Warning error handler - logs to stdLogger - messages for warnings and some errorsstatic final org.slf4j.Logger
static final org.slf4j.Logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorHandler
An error handler that throws aRiotParseException
, hence it exposes the details of errors.static ErrorHandler
An error handler that throws exceptions in all cases.static ErrorHandler
errorHandlerIgnoreWarnings
(org.slf4j.Logger log) An error handler that logs error and fatal messages, but not warningsstatic ErrorHandler
Ignores warnings, throws exceptions for errorsstatic ErrorHandler
errorHandlerStd
(org.slf4j.Logger log) An error handler that logs messages, then throws exceptions for errors but not warningsstatic ErrorHandler
errorHandlerStrict
(org.slf4j.Logger log) Strict error handler, with loggingstatic ErrorHandler
Silent, strict error handler, no loggingstatic ErrorHandler
errorHandlerWarning
(org.slf4j.Logger log) An error handler that logs messages for errors and warnings and attempts to carry onstatic ErrorHandler
errorHandlerWarnOrExceptions
(org.slf4j.Logger logger) An error handler that logs warnings and throws exceptions on error and fatal.static ErrorHandler
Get the current default error handlerstatic void
setDefaultErrorHandler
(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
-