public static class TdApi.TestReturnError extends TdApi.Function<TdApi.Error>
Returns Error
| 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()
Returns an identifier uniquely determining type of the object.
|
toStringpublic 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()
TdApi.ObjectgetConstructor in class TdApi.Object