Package org.drinkless.tdlib
Class TdApi.TestReturnError
- java.lang.Object
-
- org.drinkless.tdlib.TdApi.Object
-
- org.drinkless.tdlib.TdApi.Function
-
- org.drinkless.tdlib.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 Summary
Fields Modifier and Type Field Description static intCONSTRUCTORIdentifier uniquely determining type of the object.TdApi.ErrorerrorThe error to be returned.
-
Constructor Summary
Constructors Constructor Description TestReturnError()Default constructor for a function, which returns the specified error and ensures that the Error object is used; for testing only.TestReturnError(TdApi.Error error)Creates a function, which returns the specified error and ensures that the Error object is used; for testing only.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetConstructor()-
Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
-
-
-
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.
-
-
Method Detail
-
getConstructor
public int getConstructor()
- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-
-