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

network.Errors.kt Maven / Gradle / Ivy

package maestro.utils.network

class InputFieldNotFound : Throwable("Unable to find focused input field")
class UnknownFailure(errorResponse: String) : Throwable(errorResponse)

sealed class XCUITestServerResult {
    data class Success(val data: T): XCUITestServerResult()
    data class Failure(val errors: XCUITestServerError): XCUITestServerResult()
}

sealed class XCUITestServerError: Throwable() {
    data class UnknownFailure(val errorResponse: String) : XCUITestServerError()
    data class NetworkError(val errorResponse: String): XCUITestServerError()
    data class AppCrash(val errorResponse: String): XCUITestServerError()
    data class BadRequest(val errorResponse: String, val error: Error): XCUITestServerError()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy