Throwing exceptions when a method from a service is called through the wrong thread.