ES guys,
If I call a EsObject get* method with a variable name that doesn't exit, ES throws a RuntimeException. The problem is that it isn't possible to distinguish it from another RuntimeException (NullPointerException, IllegalArgumentException, HibernateException, to name a few) in the same try catch block.
The solution I found is to isolate all the get* methods in a single try catch block, but it would be more elegant if you throw a more specific RuntimeException like EsInvalidVariableNameException or something like that.
Let me know what you think.


Reply With Quote
