UNPKG

powerpagestoolkit

Version:

Reference, manipulate, and engage with Power Pages sites through the nodes in the DOM; use a variety of custom methods that allow customizing your power pages site quicker and easier.

38 lines (37 loc) 1.48 kB
/// <reference path="../globals.d.ts" /> import type DOMNodeReference from "../ancillary/DOMNodeReference.d.ts"; declare class CustomError extends Error { node: DOMNodeReference; constructor(node: DOMNodeReference, message: string); } declare class InitializationError extends CustomError { constructor(node: DOMNodeReference, error: string); } declare class NodeNotFoundError extends CustomError { constructor(node: DOMNodeReference); } declare class Page_ValidatorsNotFoundError extends CustomError { constructor(node: DOMNodeReference); } declare class BusinessRuleError extends CustomError { constructor(node: DOMNodeReference); } declare class SelfReferenceError extends CustomError { constructor(node: DOMNodeReference); } declare class LabelNotFoundError extends CustomError { constructor(node: DOMNodeReference); } declare class IncorrectParameterError extends CustomError { constructor(node: DOMNodeReference, functionName: string, argName: string, expectedTypes: string[], receivedType: any); } declare const Errors: { NodeNotFoundError: typeof NodeNotFoundError; InitializationError: typeof InitializationError; Page_ValidatorsNotFoundError: typeof Page_ValidatorsNotFoundError; BusinessRuleError: typeof BusinessRuleError; SelfReferenceError: typeof SelfReferenceError; LabelNotFoundError: typeof LabelNotFoundError; IncorrectParameterError: typeof IncorrectParameterError; }; export default Errors;