All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.com.stytch.java.common.StytchResult.kt Maven / Gradle / Ivy

There is a newer version: 6.7.0
Show newest version
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()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy