logging / net.corda.common.logging.errorReporting / ErrorReporting

ErrorReporting

class ErrorReporting

Entry point into the Error Reporting framework.

This creates the error reporter used to report errors. The initialiseReporting method should be called to build a reporter before any errors are reported.

Constructors

<init>

ErrorReporting()

Functions

initialiseReporting

Set up the reporting of errors.

fun initialiseReporting(): Unit

usingResourcesAt

Set the location of the resource bundles containing the error codes.

fun usingResourcesAt(location: String): ErrorReporting

withContextProvider

Set the context provider to supply project-specific information about the errors.

fun withContextProvider(contextProvider: ErrorContextProvider): ErrorReporting

withLocale

Set the locale to use when reporting errors

fun withLocale(locale: String): ErrorReporting