haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.Error

Documentation

data Error Source #

Constructors

Error

An object of this type can be returned on every function call, in case of an error

Fields

  • code :: Maybe 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 :: Maybe Text

    Error message; subject to future changes

Instances

Instances details
FromJSON Error Source # 
Instance details

Defined in TD.Data.Error

ToJSON Error Source # 
Instance details

Defined in TD.Data.Error

Show Error Source # 
Instance details

Defined in TD.Data.Error

Methods

showsPrec :: Int -> Error -> ShowS #

show :: Error -> String #

showList :: [Error] -> ShowS #

Eq Error Source # 
Instance details

Defined in TD.Data.Error

Methods

(==) :: Error -> Error -> Bool #

(/=) :: Error -> Error -> Bool #

ShortShow Error Source # 
Instance details

Defined in TD.Data.Error