Class: KyooNotConnectedError
Represents an error which is thrown when attempting to call the enqueue
method while the connection to the queue broker is not established.
Extends
KyooError
Constructors
Constructor
ts
new KyooNotConnectedError(reason?: ValidationError): KyooNotConnectedError;
Parameters
Parameter | Type |
---|---|
reason ? | ValidationError |
Returns
KyooNotConnectedError
Overrides
ts
KyooError.constructor;
Properties
Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
cause? | public | unknown | - | KyooError.cause |
stack? | public | string | - | KyooError.stack |
prepareStackTrace? | static | (err : Error , stackTraces : CallSite []) => any | Optional override for formatting stack traces See https://v8.dev/docs/stack-trace-api#customizing-stack-traces | KyooError.prepareStackTrace |
stackTraceLimit | static | number | - | KyooError.stackTraceLimit |
Accessors
[toStringTag]
Get Signature
ts
get toStringTag: string;
Returns
string
Inherited from
ts
KyooError.[toStringTag]
message
Get Signature
ts
get message(): string;
Returns
string
Inherited from
ts
KyooError.message;
name
Get Signature
ts
get name(): string;
Returns
string
Inherited from
ts
KyooError.name;
Methods
[toPrimitive]()
ts
toPrimitive: string | true;
Parameters
Parameter | Type |
---|---|
hint | "string" | "number" | "default" |
Returns
string
| true
Inherited from
ts
KyooError.[toPrimitive]
toString()
ts
toString(): string;
Returns a string representation of an object.
Returns
string
Inherited from
ts
KyooError.toString;
[hasInstance]()
ts
static hasInstance: boolean;
Parameters
Parameter | Type |
---|---|
instance | unknown |
Returns
boolean
Inherited from
ts
KyooError.[hasInstance]
captureStackTrace()
ts
static captureStackTrace(targetObject: object, constructorOpt?: Function): void;
Create .stack property on a target object
Parameters
Parameter | Type |
---|---|
targetObject | object |
constructorOpt ? | Function |
Returns
void
Inherited from
ts
KyooError.captureStackTrace;