logging / net.corda.common.logging.errorReporting / ErrorResource

ErrorResource

class ErrorResource

A representation of a single error resource file.

This handles selecting the right properties from the resource bundle and formatting the error message.

Properties

actionsToFix

val actionsToFix: String

aliases

val aliases: String

shortDescription

val shortDescription: String

Functions

getErrorMessage

fun getErrorMessage(args: Array<Any>): String

Companion Object Functions

fromErrorCode

Construct an error resource from a provided code.

fun fromErrorCode(errorCode: ErrorCode<*>, resourceLocation: String, locale: Locale): ErrorResource

fromLoader

Construct an error resource using resources loaded in a given classloader

fun fromLoader(resource: String, classLoader: ClassLoader, locale: Locale): ErrorResource