MonterosaSdkError

class MonterosaSdkError(errorType: ErrorType, cause: Exception?, metadata: Map<String, Any?>) : MonterosaSdkException

Represents an error that occurs within the Monterosa SDK. This class wraps errors and exceptions caught during an ExperienceView lifecycle process and is passed to the sdk user via the onLoadingFailed listener.

Parameters

cause

The root cause of the error, or null if there isn't one.

Constructors

Link copied to clipboard
constructor(errorType: ErrorType, cause: Exception?, metadata: Map<String, Any?>)
constructor(errorType: ErrorType, cause: Exception? = null)

Properties

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

Functions

Link copied to clipboard
open override fun toString(): String

Returns a string representation of the MonterosaSdkError object.