Added two exception types.