use AssertionException for #316