ScanningSdkException Class

class ScanningSdkException : RuntimeException

Thrown when an SDK operation fails: the engine could not complete the work, or the object it was asked to work on has been closed.

Unchecked, so it does not have to be caught — but the operations that raise it are the ones worth handling: loading a page, processing it, recognising text, and writing output all depend on device memory and on files the user chose, and any of them can fail for reasons an application should report rather than crash on.

The message names what failed. Where a cause exists it is chained, so the underlying I/O or decode error is available from cause.

Constructors

ScanningSdkException

constructor(cause: Throwable, message: String, vararg params: Any)

Constructs the exception from an underlying failure and a formatted message. Not part of the API.

Types

Companion

object Companion : Tag

Logging tag for exceptions raised by the SDK.

Properties

cause

open val cause: Throwable?

message

open val message: String?
Top