Package com.zeroc.Ice

Interface UserExceptionFactory


public interface UserExceptionFactory
Instantiates user exceptions.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Instantiate a user exception with the given Slice type ID (such as ::Module::MyException) and throw it.
  • Method Details

    • createAndThrow

      void createAndThrow(String typeId) throws UserException
      Instantiate a user exception with the given Slice type ID (such as ::Module::MyException) and throw it. If the implementation does not throw an exception, the Ice run time will fall back to using its default behavior for instantiating the user exception.
      Parameters:
      typeId - The Slice type ID of the user exception to be created.
      Throws:
      UserException - A user exception instance corresponding to the type ID.