@zeroc/ice
    Preparing search index...

    Interface SliceLoader

    Creates class and exception instances from Slice type IDs.

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

    Implemented by

    Index

    Methods

    Methods

    • 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.

      Returns Value | UserException

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

      MarshalException If the corresponding class was found but its instantiation failed.