use nserror for apn error