withMeta

fun withMeta(key: String, value: Any): UfcException(source)

Creates a new UfcException with an additional metadata entry.

Return

A new UfcException instance

Parameters

key

The metadata key

value

The metadata value


fun withMeta(newMetadata: Map<String, Any>): UfcException(source)

Creates a new UfcException with multiple additional metadata entries.

Return

A new UfcException instance

Parameters

newMetadata

The metadata to add