LocalizedMessage

Provides a localized error message that is safe to return to the user which can be attached to an RPC error.

Properties

Link copied to clipboard
abstract val locale: String

The locale used following the specification defined at https://www.rfc-editor.org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX"

Link copied to clipboard
abstract val message: String

The localized error message in the above locale.

Functions

Link copied to clipboard
fun LocalizedMessage.copy(body: <Error class: unknown class>.() -> Unit = {}): LocalizedMessage

Copies the original message, including unknown fields.