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

fromErrorCode

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

Construct an error resource from a provided code.

Parameters

errorCode - The code to get the resource bundle for

resourceLocation - The location in the JAR of the error code resource bundles

locale - The locale to use for this resource