[docs]class MimetypeMismatchException(Exception):
"""Expected mimetype does not match the given mimetype."""
[docs]class MimetypeNotDetectedException(Exception):
"""Mimetype could not have been detected."""
[docs]class DataChunkNotBytesException(Exception):
"""All chunks of a lecture material upload stream except the first one should be bytes."""
[docs]class FileOverwriteNotPermittedException(Exception):
"""A file is already present at the given location and is not permitted to be overwritten."""
[docs]class NoMimetypeMappingException(Exception):
"""The system could not map any file extension to the given mimetype, the mimetype could be invalid."""
[docs]class PipelineModuleCompositionNotValidException(Exception):
"""Input and output datatypes at least one successive PipelineModule are not compatible."""
[docs]class PipelineExecutionException(Exception):
"""Unexpected behavior occurred in the execution of a PipelineModule"""
[docs]class LectureMaterialNotFoundOnRemotesException(PipelineExecutionException):
"""All remotes have been requested to provide the lecture material, but none of the remotes is able to."""
[docs]class LectureMaterialLocallyNotFoundException(Exception):
"""The requested lecture material cannot be provided by the InternalMaterialController."""
[docs]class ResultException(PipelineExecutionException):
"""The generated result by the language model is not able to be further processed, due to incompatibilities."""
[docs]class ResultSectionNotFoundException(ResultException):
"""The result section, marked with `<result></result>` tags was not found in the given text."""
[docs]class ResultSectionNotParsableException(ResultException):
"""The structure of the result section, marked with `<result></result>` tags does not match the QuestionType."""
[docs]class MissingDefaultInternalConfigAttributeException(Exception):
"""A DefaultInternalConfig attribute was not be found."""
[docs]class EvaluationNotCompatibleWithInternalEvaluation(Exception):
"""Evaluation is not compatible with InternalEvaluation. Please check the `QuestionEvaluation.internal_evaluations` mappings."""