Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...

    Class ClientIssues

    A class responsible for tracking issues in the current world.

    Index

    Accessors

    • get validationFailures(): {
          [documentName: string]: {
              [uuid: string]: { error: Error; name?: string };
          };
      }

      Retrieve the tracked validation failures.

      Returns { [documentName: string]: { [uuid: string]: { error: Error; name?: string } } }

    Methods

    • Internal

      Add an invalid Document to the module-provided sub-type counts.

      Parameters

      • cls: typeof Document

        The Document class.

      • source: object

        The Document's source data.

      • Optionaloptions: { decrement?: boolean } = {}
        • Optionaldecrement?: boolean

          Decrement the counter rather than incrementing it.

      Returns void

    • Internal

      Track all world document validation failures and failures of their embedded documents.

      Returns void

    • Internal

      Detect and record certain usability error messages which are likely to result in the user having a bad experience.

      Returns void

    • Internal

      Detect and display warnings for known performance issues which may occur due to the user's hardware or browser configuration.

      Returns void

    • Internal

      Handle deletion of invalid documents.

      Parameters

      • documentName: string

        The Document name

      • invalidIds: string[]

        The array of invalid IDs

      • context: {
            pack?: string | null;
            parent?: Document<object, DocumentConstructionContext> | null;
        } = {}

        The context

      Returns void