タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

otpに関するkuenishiのブックマーク (1)

  • Erlang OTP アプリケーションのエラー処理 - higepon blog

    Erlang OTP アプリケーションのエラー処理について書かれた記事をあまり見かけないのでまとめてみました。 application -> supervisor -> workers という構成を想定。 application:start(app) 中のエラー application:start/1 中のエラーは戻り値 で分かる。{error, Reason} になる。Reason をエラー出力し init/stop。 特に application:start/2 の中で supervisor を立ち上げている場合 supervisor が worker を起動できないと {error, {shutdown, _}} となるので特別にユーザーに分かりやすいメッセージに変更するのもあり。 worker で致命的なエラーが発生した場合 複数ある worker のうち 1つが致命的なエラーに遭

    Erlang OTP アプリケーションのエラー処理 - higepon blog
  • 1