public static class TdApi.TestReturnError extends TdApi.Function
Returns Error
TdApi.Function.Constructors
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.Error |
error
The error to be returned.
|
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public TdApi.Error error
public static final int CONSTRUCTOR
public TestReturnError()
Returns Error
public TestReturnError(TdApi.Error error)
Returns Error
error
- The error to be returned.public int getConstructor()
getConstructor
in class TdApi.Function