Skip to main content

ModelError

Thrown when a model is used in a way its own rules forbid, e.g. adding a child that already exists.

@group

Errors/Node

@throws

When a model is given a child, anchor or member it already has.

@throws

When models are joined that their rules keep apart, such as an environment and a subnet in different regions.

Hierarchy

Index

Constructors

Properties

Constructors

constructor

  • ModelError(message: string, model: UnknownModel): ModelError
  • Parameters

    • message: string

      The error message.

    • model: UnknownModel

      The model the error is about.

    Returns ModelError

Properties

readonlyinheritednode

node: string

The context of the node.

Page Options