replace exception type