Class TdApi.Error

  • Enclosing class:
    TdApi

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

      Fields 
      Modifier and Type Field Description
      int code
      Error code; subject to future changes.
      static int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      java.lang.String message
      Error message; subject to future changes.
    • Constructor Summary

      Constructors 
      Constructor Description
      Error()
      Default constructor.
      Error​(int code, java.lang.String message)
      Constructor for initialization of all fields.
    • Field Detail

      • 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 java.lang.String message
        Error message; subject to future changes.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Error

        public Error()
        Default constructor.
      • Error

        public Error​(int code,
                     java.lang.String message)
        Constructor for initialization of all fields.
        Parameters:
        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 - Error message; subject to future changes.