6.3.2.1 Constructors
public JSMException ( Throwable t )
public JSMException ( String message )
public JSMException ( String status, String message )
The main purpose of JSMException is to allow a response to be returned to the client program when service program code is several layers down and it is not easy to return a JSMResponse object.
If the constructor parameter is a Throwable object then the status value is ERROR and the message value comes from the Throwable object.
If the Throwable getMessage method returns a null, then the message value is the class name of the Throwable object.
Throwing a JSMException or returning a JSMResponse object are the two ways of returning data and control to the client program.
The default status is ERROR.