Slide 8
Slide 8 text
Not dealing correctly with
possible failures of external
APIs
Calls to external APIs may fail to a variety of reasons (incorrect params, API
change, call timeout, network issue, etc.).
You need to handle gracefully possible errors (it's not easy to find out all the
exception classes you need to catch...)
d
e
f p
o
s
t
_
t
o
_
t
w
i
t
t
e
r
t
w
i
t
t
e
r
_
c
l
i
e
n
t
.
u
p
d
a
t
e "
N
e
w p
o
s
t
: #
{
c
o
n
t
e
n
t
}
"
r
e
s
c
u
e T
w
i
t
t
e
r
:
:
E
r
r
o
r
, T
i
m
e
o
u
t
:
:
E
r
r
o
r
, E
r
r
n
o
:
:
E
C
O
N
N
R
E
S
E
T #
, e
t
c
.
# h
a
n
d
l
e t
h
e e
r
r
o
r
e
n
d
8 / 13