conda_recipe_manager.parser.exceptions#

Description:

Provides exceptions thrown by the parser.

Exceptions

BaseParserException(message)

Exception raised when an unexpected issue occurred while trying to parse or manipulate a recipe file.

IndentFormattingException(message)

Exception raised when a recipe file cannot be formatted correctly for indentation issues.

JsonPatchValidationException(patch)

Indicates that the calling code has attempted to use an illegal JSON patch payload that does not meet the schema criteria.

ParsingException([message])

Exception raised when a recipe file cannot be correctly parsed.

ParsingJinjaException(jinja_statement)

Exception raised when a recipe file cannot be correctly parsed because of unsupported JINJA statements.

exception conda_recipe_manager.parser.exceptions.BaseParserException(message: str)[source]#

Bases: Exception

Exception 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: BaseParserException

Exception 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: BaseParserException

Indicates 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: BaseParserException

Exception 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: ParsingException

Exception 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#