assert instance of Exception