isThrowException method implemented