Impl a generalized reject method to indicate errors