Class TdApi.TestReturnError

  • Enclosing class:
    TdApi

    public static class TdApi.TestReturnError
    extends TdApi.Function
    Returns the specified error and ensures that the Error object is used; for testing only. Can be called synchronously.

    Returns Error

    • Field Detail

      • error

        public TdApi.Error error
        The error to be returned.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • TestReturnError

        public TestReturnError()
        Default constructor for a function, which returns the specified error and ensures that the Error object is used; for testing only. Can be called synchronously.

        Returns Error

      • TestReturnError

        public TestReturnError​(TdApi.Error error)
        Creates a function, which returns the specified error and ensures that the Error object is used; for testing only. Can be called synchronously.

        Returns Error

        Parameters:
        error - The error to be returned.