InvalidURL

The constructed URL was malformed and the request could not be sent.

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

True for connectivity-class failures the user can retry. False for server-validation errors that should stay in the form so the user can correct the input.

Link copied to clipboard
open val message: String?

Functions

Link copied to clipboard
fun toastMessage(fallback: String = "Something went wrong. Please try again."): String

User-facing message for the snackbar surface, prefixed with "Error: " for clarity. For ServerError, parses the standard Frame envelope ({"error_details":{"message":"…"},"error":"…"}) and prefers error_details.message. For transport-class errors or unparseable bodies, returns fallback prefixed the same way.