AIAgentError

constructor(message: String, stackTrace: String, cause: String? = null, type: String? = null)(source)


constructor(throwable: Throwable)(source)

Secondary constructor that allows creating an instance of the class using a Throwable.

Parameters

throwable

The Throwable from which the error message, stack trace, and cause will be retrieved.