Class in Errors · JavaScript & TypeScript
An application callback invoked by the SDK failed, threw or rejected
The run function returns it as an expected failure, with source "run setup", when its setup callback fails, and with source "run commands" when its commands register callback throws. Where the SDK cannot return a typed failure, such as a default keep task, it appears as a fault inside Sdk. The original failure or thrown value is the cause. Handler, filter and collector callback failures are reported with their original value through Failure or their own error types instead
class ApplicationError extends FluxerlyErrorclass ApplicationError
extends FluxerlyErrorConstructor#
new ApplicationError(
source: string,
cause: unknown
): ApplicationErrornew ApplicationError(
source: string,
cause: unknown
): ApplicationErrorParameters
source-
Names the application callback that failed, such as
runsetup orBot keeptaskTyping string cause-
The original thrown or rejected value
unknown
Properties#
_tag#
Discriminator for a failure thrown by application code rather than the SDK
readonly _tag: "ApplicationError"source#
Names the application callback that failed, such as run setup or keep task
readonly source: stringInherited#
Inherited from Fluxerly: code, details, hint, to