android-components / mozilla.components.browser.errorpages / ErrorPages / createErrorPage

createErrorPage

fun createErrorPage(context: <ERROR CLASS>, errorType: ErrorType, uri: String? = null, @RawRes htmlResource: Int = R.raw.error_pages, @RawRes cssResource: Int = R.raw.error_style): String (source)

Load and generate error page for the given error type and html/css resources. Encoded in Base64 & does NOT support loading images