Adding sendException method.