Packages > @fluidframework/driver-definitions > IAnyDriverError

IAnyDriverError Interface

Interface describing errors and warnings raised by any driver code.

Signature

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

Extends: Omit<IDriverErrorBase , “errorType”>

Remarks

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 DriverErrorTypes or the specific driver’s specialized error type enum, but we can’t reference a specific driver’s error type enum in this code.

Properties

Property Modifiers Type Description
errorType readonly string

Property Details

errorType

Signature

readonly errorType: string;