Implemented the throwException to throw a service exception when the 'service' object is not valid