Skip to main content
Version: v1

IDriverBasicError Interface

Having this uber interface without types that have their own interfaces allows compiler to differentiate interfaces based on error type

Signature​

export interface IDriverBasicError extends IDriverErrorBase

Extends: IDriverErrorBase

Properties​

PropertyModifiersTypeDescription
errorTypeDriverErrorType.genericError | DriverErrorType.fileNotFoundOrAccessDeniedError | DriverErrorType.offlineError | DriverErrorType.unsupportedClientProtocolVersion | DriverErrorType.writeError | DriverErrorType.fetchFailure | DriverErrorType.incorrectServerResponse | DriverErrorType.fileOverwrittenInStorage
statusCodeoptionalnumber

Property Details​

errorType​

Signature​

readonly errorType: DriverErrorType.genericError | DriverErrorType.fileNotFoundOrAccessDeniedError | DriverErrorType.offlineError | DriverErrorType.unsupportedClientProtocolVersion | DriverErrorType.writeError | DriverErrorType.fetchFailure | DriverErrorType.incorrectServerResponse | DriverErrorType.fileOverwrittenInStorage;

Type: DriverErrorType.genericError | DriverErrorType.fileNotFoundOrAccessDeniedError | DriverErrorType.offlineError | DriverErrorType.unsupportedClientProtocolVersion | DriverErrorType.writeError | DriverErrorType.fetchFailure | DriverErrorType.incorrectServerResponse | DriverErrorType.fileOverwrittenInStorage

statusCode​

Signature​

readonly statusCode?: number;

Type: number