revised SendError,BuildError