Class

GObject-2.0GObjectNotImplementedError

Use this to signify a function that must be overridden in an implementation of the interface.

Hierarchy

  • Error
    • NotImplementedError
Index

Constructors

Properties - Inherited from Error

Accessors

Methods - Inherited from Error

Constructors

Properties - Inherited from Error

cause?: unknown
message: string
stack?: string

Accessors

Methods - Inherited from Error

  • Checks if this error matches a GLib error domain and code.

    Added to the global Error prototype by the GLib override so that e.matches(Ns.FooError, Ns.FooError.SOME_CODE) works without an instanceof check. Always returns false for standard JavaScript errors; only GLib.Error instances provide a meaningful implementation.

    Parameters

    • domain: unknown

      A GLib error domain (error class constructor or quark)

    • code: number

      The error code to match against

    Returns boolean

    false for native JS errors, true if a GLib.Error matches