HubError

Class

Generic Hub Error with an Error stack as well as an optional serialized OperationStack.

Also accepts a rootCause Error object

Extends

Constructors

  • new HubError(operation: string, message: string, rootCause: Error) : HubError

Constructor Parameters

Parameter Type Default Notes
operation Required string
message Optional string
rootCause Optional Error

Properties

Property Type Notes
message Inherited string
name Inherited string
operation Inherited string

What operation failed

stack Inherited string

Stack trace

operationStack Optional Inherited ISerializedOperationStack
rootCause Optional Inherited Error

Root Error that was thrown


Class defined in common/src/HubError.ts:10