Module tdlight.api

Class TdApi.Error

java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.Error
Enclosing class:
TdApi

public static final class TdApi.Error extends TdApi.Object
An object of this type can be returned on every function call, in case of an error.
  • Field Details

    • code

      public int code
      Error code; subject to future changes. If the error code is 406, the error message must not be processed in any way and must not be displayed to the user.
    • message

      public String message
      Error message; subject to future changes.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • Error

      public Error()
      An object of this type can be returned on every function call, in case of an error.
    • Error

      public Error(int code, String message)
      An object of this type can be returned on every function call, in case of an error.
      Parameters:
      code - int Error code; subject to future changes. If the error code is 406, the error message must not be processed in any way and must not be displayed to the user.
      message - String Error message; subject to future changes.
    • Error

      public Error(DataInput input) throws IOException
      An object of this type can be returned on every function call, in case of an error.
      Throws:
      IOException
  • Method Details