-- frontend exception handler---