neuralmonkey.config.exceptions module

Module that contains exceptions handled in config parsing and loading.

exception neuralmonkey.config.exceptions.ConfigBuildException(object_name: str, original_exception: Exception) → None

Bases: Exception

Exception caused by error in loading the model.

__init__(object_name: str, original_exception: Exception) → None

Create an instance of the exception.

Parameters:
  • object_name – The name of the object that has failed to build
  • original_exception – The exception that caused the failure
exception neuralmonkey.config.exceptions.ConfigInvalidValueException(value: Any, message: str) → None

Bases: Exception

__init__(value: Any, message: str) → None

Create an instance of the exception.

Parameters:
  • value – The invalid value
  • message – String that describes the nature of the error
exception neuralmonkey.config.exceptions.IniError(line: int, message: str, original_exc: Union[Exception, NoneType] = None) → None

Bases: Exception

Exception caused by error in INI file syntax.

__init__(line: int, message: str, original_exc: Union[Exception, NoneType] = None) → None

Create an instance of the exception.

Parameters:
  • line – Line number on which the error occured
  • message – A string describing the nature of the error
  • original_exc (optional) – An exception that caused this exception to be thrown