Handle expected exception types