Exception throwing when needed.

Changed all setError code for throw new Exception taking care of execution logic.
In server all exceptions are cough and sent to the client as soap faults