Skip to main content
Version: v1

IDriverErrorBase Interface

Base interface for all errors and warnings

Signature​

export interface IDriverErrorBase

Properties​

PropertyModifiersTypeDescription
canRetrybooleanTrue indicates the caller may retry the failed action. False indicates it's a fatal error
errorTypeDriverErrorTypeClassification of what type of error this is, used programmatically by consumers to interpret the error
messagestringFree-form error message
onlineoptionalstringBest guess as to network conditions (online/offline) when the error arose. See OnlineStatus enum in driver-utils package for expected values.

Property Details​

canRetry​

True indicates the caller may retry the failed action. False indicates it's a fatal error

Signature​

canRetry: boolean;

Type: boolean

errorType​

Classification of what type of error this is, used programmatically by consumers to interpret the error

Signature​

readonly errorType: DriverErrorType;

Type: DriverErrorType

message​

Free-form error message

Signature​

readonly message: string;

Type: string

online​

Best guess as to network conditions (online/offline) when the error arose. See OnlineStatus enum in driver-utils package for expected values.

Signature​

online?: string;

Type: string