Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question

 
deepak kukreja
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What happens if there is some error in the init() method.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13062
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If there is an exception thrown in init, your browser will get an error on trying to reach the URL. To be really graceful about it, you can throw an UnavailableException from the init so the container will be able to log the reason.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic