Skip to main content

IBuilderErrorEvent interface

📖 Description​

Event interface for the OnError hook, fired when the builder detects an error during loading.

tip

Use the hook method if you want to attach multiple listeners to the same event. If you just need one listener, use the onError event of the Builder instance.

📃 Type declaration​

interface IBuilderErrorEvent {
  builder: Builder;Readonly
  erroneousBlocks: number;Readonly
  missingBlockTypes: string[];Readonly
}
🖱ī¸ Hover with the mouse over a property name for a tooltip with the description of that property. Click it for more information.

🗃ī¸ Properties​


🏷ī¸ builder​

Contains a reference to the Builder instance that generated the event.

Type​

Builder


🏷ī¸ erroneousBlocks​

Contains the number of blocks that could not load.

Type​

number


🏷ī¸ missingBlockTypes​

Contains an array of block type identifiers that are missing.

Type​

string[]