codemelted.js Module
    Preparing search index...

    Class CModuleError

    Class that represents any codemelted.js API violations or caught exceptions that were not handled properly as this module is intended to never throw so any "unknown / unhandled" exception is either an API violation or an exception not properly handled by this module.

    Hierarchy

    • Error
      • CModuleError
    Index
    • Constructor for the module error.

      Parameters

      • message: string

        The module API violation.

      • Optionalcause: any

        Capture a chaining of failure detections to create a stack trace for debugging.

      Returns CModuleError

    • get MISUSE(): string

      Identifies a misuse of the module API.

      Returns string

    • get NOT_IMPLEMENTED(): string

      Identifies a not implemented feature of the module.

      Returns string

    • get TYPE_VIOLATION(): string

      Identifies an unexpected parameter type with a module function call.

      Returns string

    • get UNSUPPORTED_RUNTIME(): string

      Identifies an unsupported JavaScript runtime was called with a public function.

      Returns string

    • Provides custom printout of the module error providing the name, message, and stack_trace to chain together the call failure sequence.

      Returns string

    • Utility function to chain together a stack trace of module API failures.

      Parameters

      • err: any

        The error caught to log and rethrow.

      Returns void