policy error handle