YtdlError
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new YtdlError(
code,message,details?):YtdlError
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
code |
YtdlErrorCode |
message |
string |
details? |
YtdlErrorDetails |
Returns
Section titled “Returns”YtdlError
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”attempts
Section titled “attempts”
readonlyattempts: readonlyAttemptRecord[]
availableCountries
Section titled “availableCountries”
readonlyavailableCountries: readonlystring[] |undefined
cause?
Section titled “cause?”
optionalcause?:unknown
Inherited from
Section titled “Inherited from”Error.cause
readonlycode:YtdlErrorCode
message
Section titled “message”message:
string
Inherited from
Section titled “Inherited from”Error.message
readonlyname:"YtdlError"="YtdlError"
Overrides
Section titled “Overrides”Error.name
stack?
Section titled “stack?”
optionalstack?:string
Inherited from
Section titled “Inherited from”Error.stack
startTime
Section titled “startTime”
readonlystartTime:Date|undefined
Methods
Section titled “Methods”
staticis(error,code?):error is YtdlError
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
error |
unknown |
code? |
YtdlErrorCode |
Returns
Section titled “Returns”error is YtdlError