> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# getOrThrow

> Kotlin Function

**Function**

```kotlin theme={null}
fun <T, E> Result<T, E>.getOrThrow(): T
```

Returns the success value, or throws if this is a Result.Failure.
