This is the third in a series about translatable exceptions (see Translatable Error Messages). This post is about the class JSONException which contains the required features. Read the rest of this entry »
Tag Archives: exceptions
When you make a web service call, you want to report the problem to the user save as you do for any other part of the program, and that is through an exception object. This post talks about converting the JSON received back into an exception object so that it can be reported properly. This is the fourth post in a series about translatable errors for REST web services. Read the rest of this entry »
We need to construct an object which has a template and a set of parameter data values. Java offers a couple of ways to do this, and this post shows how the variable parameter mechanism works easily and conveniently for this purpose. Read the rest of this entry »
Second in a series on translatable exceptions, this discusses how an error message should be returned as JSON from a web-service API so that it the calling program can display the error in the right language for the user. Read the rest of this entry »
This is the first of a series of posts, I want to go over some of the groundwork of what it takes to make exceptions localizable into other languages. Nothing new here, but just want to explain clearly the requirements of a localizable exception messages.
Still reviewing that code base and finding more bad patterns for use of constants, this time for error messages. This is another “don’t do this” post. Read the rest of this entry »