Skip to main content
Version: v1

IAnyDriverError Interface

Interface describing errors and warnings raised by any driver code. Not expected to be implemented by a class or an object literal, but rather used in place of any or unknown in various function signatures that pass errors around.

"Any" in the interface name is a nod to the fact that errorType has lost its type constraint. It will be either DriverErrorType or the specific driver's specialized error type enum, but we can't reference a specific driver's error type enum in this code.

Signature

export interface IAnyDriverError extends Omit<IDriverErrorBase, "errorType">

Extends: Omit<IDriverErrorBase

Properties

Property Type Description
errorType string

Property Details

errorType

Signature

readonly errorType: string;

Type: string