initial error handle.