Skip to main content

RemoveResourceError

Thrown when a resource is removed while other resources still depend on it. Carries the children that blocked it.

@group

Errors/Node

@throws

When a resource is removed while resources that depend on it remain.

Hierarchy

Index

Constructors

Properties

Constructors

constructor

  • RemoveResourceError(message: string, resource: UnknownResource, childrenResources: UnknownResource[]): RemoveResourceError
  • Parameters

    • message: string

      The error message.

    • resource: UnknownResource

      The resource that could not be removed.

    • childrenResources: UnknownResource[]

      The resources still depending on it.

    Returns RemoveResourceError

Properties

readonlychildrenResources

childrenResources: string[]

The ids of the resources that still depend on the removed one.

readonlyinheritednode

node: string

The context of the node.

Page Options