main.com.stytch.java.common.StytchResult.kt Maven / Gradle / Ivy
package com.stytch.java.common
public sealed class StytchResult {
/**
* Data class that can hold a successful response from a Stytch endpoint
* @property value is the value of the response
*/
public data class Success(val value: T) : StytchResult()
/**
* Data class that can hold a StytchException
* @property exception provides information about what went wrong during an API call
*/
public data class Error(val exception: StytchException) : StytchResult()
}