//clika-runtime/io.clika.modelverse/ModelverseException
ModelverseException
[common]
class ModelverseException(message: String, val codeName: String = "", cause: Throwable? = null)
A Modelverse failure, in words a person can act on: a model directory that holds no checkpoint the library serves, a weight file the runtime cannot decode, a request past the context window, a library that did not load.
codeName is the runtime's machine-readable status name (NOT_FOUND, INVALID_ARGUMENT, LICENSE_FAILED, ...) when the failure originated in the runtime; empty for a failure of the binding itself. Branch on it, never on the message text: a release build may print an opaque message code in place of the text, and the name survives.
Constructors
| ModelverseException | [common] constructor(message: String, codeName: String = "", cause: Throwable? = null) |
Properties
| Name | Summary |
|---|---|
| codeName | [common] val codeName: String |