This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Server side exceptions and client side views  RSS feed

 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whenever a exception thrown in the server side, it is shown in the client browser. If I flush the buffer manually, then it won't be shown. What is the internal mechanism?
For Example,

As you all know, a java.lang.IllegalStateException will be thrown. But, it won't be shown to the client. If I don't flush it, then who writes these exception to the client side?

Thanks!
 
Harpreet Singh janda
Ranch Hand
Posts: 317
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Conatiner i guess
 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Harpreet Singh janda wrote:Conatiner i guess

Yes, But how? and why?
 
Hebert Coelho
Ranch Hand
Posts: 754
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, Abimaran.

There another ways of doing it.

* You can set a configuration at you web.xml to capture it.
* Or you could just try/catch your exceptions.

Take a look at this post here "Handling Exceptions on WebApp". I wrote this post a coople weeks ago.

It might help you.
 
Abimaran Kugathasan
Ranch Hand
Posts: 2066
Clojure IntelliJ IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hebert Coelho wrote:Hello, Abimaran.

There another ways of doing it.

* You can set a configuration at you web.xml to capture it.
* Or you could just try/catch your exceptions.

Take a look at this post here "Handling Exceptions on WebApp". I wrote this post a coople weeks ago.

It might help you.

Thanks, but, I know how to handle it. But want to know why they do this? And how?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!