Exception thrown from Java Action is localized ?

Hi, If we throw a runtime exception from a java action, is it localized ? Example :  throw new MendixRuntimeException(new Exception("Error reading the file").getLocalizedMessage()); If not than what is the suggested way to send the localized error messages from the java action ? Please comment.   Thanks, Sandeep    
1 answers

You can throw a MendixRuntimeException from Java:

throw new MendixRuntimeException();

You can then do the error handling from Mendix. For example, Show Message action uses the default Mendix localization based on user settings:

Error details are available in the $latestError variable which you can optionally use in Mendix to configure the error handling further.