Class TdApi.TestReturnError

Enclosing class:
TdApi

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

Returns Error

  • Field Details

    • 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:
  • Constructor Details

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