LocalizedMessageResponse

data class LocalizedMessageResponse(val locale: String, val message: String)

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

Constructors

Link copied to clipboard
fun LocalizedMessageResponse(locale: String, message: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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

The localized error message in the above locale.