Adding sendException method