@zeroc/ice
    Preparing search index...

    Interface SliceLoader

    Creates class and exception instances from Slice type IDs.

    interface SliceLoader {
        newInstance(typeId: string): Value | UserException | null;
    }

    Implemented by

    Index
    • Creates an instance of a class mapped from a Slice class or exception based on a Slice type ID.

      Parameters

      • typeId: string

        The Slice type ID or compact type ID (a compact type ID is passed as its decimal string representation).

      Returns Value | UserException | null

      A new instance of the class or exception identified by typeId, or null if the implementation cannot find the corresponding class.

      MarshalException - Thrown when the corresponding class was found but its instantiation failed.