Lines Matching refs:Error
86 return Err(Error::ErrNotStarted); in start_check()
89 return Err(Error::ErrSectionDone); in start_check()
126 Section::Questions => (&mut self.header.questions, Error::ErrTooManyQuestions), in increment_section_count()
127 Section::Answers => (&mut self.header.answers, Error::ErrTooManyAnswers), in increment_section_count()
128 Section::Authorities => (&mut self.header.authorities, Error::ErrTooManyAuthorities), in increment_section_count()
129 Section::Additionals => (&mut self.header.additionals, Error::ErrTooManyAdditionals), in increment_section_count()
130 Section::NotStarted => return Err(Error::ErrNotStarted), in increment_section_count()
131 Section::Done => return Err(Error::ErrSectionDone), in increment_section_count()
132 Section::Header => return Err(Error::ErrSectionHeader), in increment_section_count()
146 return Err(Error::ErrNotStarted); in add_question()
149 return Err(Error::ErrSectionDone); in add_question()
163 return Err(Error::ErrNotStarted); in check_resource_section()
166 return Err(Error::ErrSectionDone); in check_resource_section()
178 return Err(Error::ErrNilResourceBody); in add_resource()
198 return Err(Error::ErrNotStarted); in finish()
209 Err(Error::ErrEmptyBuilderMsg) in finish()