Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "err"

Index

Functions

EtaErr

  • EtaErr(message: string): Error
  • This returns a new Error with a custom prototype. Note that it's not a constructor

    Parameters

    • message: string

      Error message

      Example

      throw EtaErr("template not found")

    Returns Error

ParseErr

  • ParseErr(message: string, str: string, indx: number): void
  • Throws an EtaErr with a nicely formatted error and message showing where in the template the error occurred.

    Parameters

    • message: string
    • str: string
    • indx: number

    Returns void

setPrototypeOf

  • setPrototypeOf(obj: any, proto: any): void
  • Parameters

    • obj: any
    • proto: any

    Returns void

Generated using TypeDoc