speziError

fun speziError(message: String, cause: Throwable? = null): Nothing

A custom error function that throws a SpeziError with the provided message and optional cause.

Return

Nothing

Parameters

message

The error message .

cause

The underlying cause of the error, if any.