<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shibe97</author_name>
  <author_url>https://blog.hatena.ne.jp/shibe97/</author_url>
  <blog_title>The future starts today</blog_title>
  <blog_url>https://shibe97.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>思考</anon>
  </categories>
  <description>photo by FotoDB.de シングルページアプリケーションを組んでいると、大量の非同期通信が必要になる。 そして、その非同期通信ごとにSuccess/Errorが存在する。 Successだけ対応していれば楽だけど、ユーザーのためにもエラーハンドリングは必須だ。 大きく分けてエラーは以下の3つ。 通信に失敗した(404含む) リクエストパラメータが間違っている 権限がない それぞれどんなエラーを出すべきか。 通信に失敗した場合 だいたいサーバ側で何か不都合が起きている場合に発生する。 「○○に失敗しました。時間をおいて再度お試しください。」 あたりが妥当か？ このパターンは基本的には…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshibe97.hatenablog.com%2Fentry%2F2016%2F05%2F11%2F183500&quot; title=&quot;非同期通信のエラーハンドリングのあれこれ - The future starts today&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://farm6.staticflickr.com/5552/15026031956_622dfdef78.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-05-11 18:35:00</published>
  <title>非同期通信のエラーハンドリングのあれこれ</title>
  <type>rich</type>
  <url>https://shibe97.hatenablog.com/entry/2016/05/11/183500</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
