conda_recipe_manager.parser.exceptions#
- Description:
Provides exceptions thrown by the parser.
Exceptions
|
Exception raised when an unexpected issue occurred while trying to parse or manipulate a recipe file. |
|
Exception raised when a recipe file cannot be formatted correctly for indentation issues. |
|
Indicates that the calling code has attempted to use an illegal JSON patch payload that does not meet the schema criteria. |
|
Exception raised when a recipe file cannot be correctly parsed. |
|
Exception raised when a recipe file cannot be correctly parsed because of unsupported JINJA statements. |
Exception raised when a sentinel type is encountered during node value evaluation. |
- exception conda_recipe_manager.parser.exceptions.BaseParserException(message: str)[source]#
Bases:
ExceptionException raised when an unexpected issue occurred while trying to parse or manipulate a recipe file.
- add_note()#
Exception.add_note(note) -- add a note to the exception
- with_traceback()#
Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.
- args#
- exception conda_recipe_manager.parser.exceptions.IndentFormattingException(message: str)[source]#
Bases:
BaseParserExceptionException raised when a recipe file cannot be formatted correctly for indentation issues.
- add_note()#
Exception.add_note(note) -- add a note to the exception
- with_traceback()#
Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.
- args#
- exception conda_recipe_manager.parser.exceptions.JsonPatchValidationException(patch: JsonPatchType)[source]#
Bases:
BaseParserExceptionIndicates that the calling code has attempted to use an illegal JSON patch payload that does not meet the schema criteria.
- add_note()#
Exception.add_note(note) -- add a note to the exception
- with_traceback()#
Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.
- args#
- exception conda_recipe_manager.parser.exceptions.ParsingException(message: str | None = None)[source]#
Bases:
BaseParserExceptionException raised when a recipe file cannot be correctly parsed. This can occur on construction of a parser class.
- add_note()#
Exception.add_note(note) -- add a note to the exception
- with_traceback()#
Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.
- args#
- exception conda_recipe_manager.parser.exceptions.ParsingJinjaException(jinja_statement: str)[source]#
Bases:
ParsingExceptionException raised when a recipe file cannot be correctly parsed because of unsupported JINJA statements. This can occur on construction of a parser class.
- add_note()#
Exception.add_note(note) -- add a note to the exception
- with_traceback()#
Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.
- args#
- exception conda_recipe_manager.parser.exceptions.SentinelTypeEvaluationException(node: Node)[source]#
Bases:
BaseParserExceptionException raised when a sentinel type is encountered during node value evaluation. This is related to the parser's internal state.
- add_note()#
Exception.add_note(note) -- add a note to the exception
- with_traceback()#
Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.
- args#