index.md 1.51 KB
Newer Older
1
2
3
4
[android-components](../../index.md) / [mozilla.components.browser.errorpages](../index.md) / [ErrorPages](./index.md)

# ErrorPages

MickeyMoz's avatar
MickeyMoz committed
5
`object ErrorPages` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/errorpages/src/main/java/mozilla/components/browser/errorpages/ErrorPages.kt#L15)
6
7
8
9
10

### Functions

| Name | Summary |
|---|---|
MickeyMoz's avatar
MickeyMoz committed
11
| [createErrorPage](create-error-page.md) | `fun createErrorPage(context: <ERROR CLASS>, errorType: `[`ErrorType`](../-error-type/index.md)`, uri: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`? = null, htmlResource: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` = R.raw.error_pages, cssResource: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` = R.raw.error_style): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)<br>Load and generate error page for the given error type and html/css resources |
MickeyMoz's avatar
MickeyMoz committed
12
13
14
15
16
17

### Extension Functions

| Name | Summary |
|---|---|
| [loadResourceAsString](../../mozilla.components.support.test.file/kotlin.-any/load-resource-as-string.md) | `fun `[`Any`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`.loadResourceAsString(path: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)<br>Loads a file from the resources folder and returns its content as a string object. |