scitex_core.errors
- exception scitex_core.errors.SciTeXError(message, context=None, suggestion=None)[source]
Bases:
ExceptionBase Exception class for all SciTeX errors.
- exception scitex_core.errors.SciTeXWarning[source]
Bases:
UserWarningBase warning class for all SciTeX warnings.
- exception scitex_core.errors.ConfigurationError(message, context=None, suggestion=None)[source]
Bases:
SciTeXErrorRaised when there are issues with SciTeX configuration.
- exception scitex_core.errors.ConfigFileNotFoundError(filepath)[source]
Bases:
ConfigurationErrorRaised when a required configuration file is not found.
- exception scitex_core.errors.ConfigKeyError(key, available_keys=None)[source]
Bases:
ConfigurationErrorRaised when a required configuration key is missing.
- exception scitex_core.errors.IOError(message, context=None, suggestion=None)[source]
Bases:
SciTeXErrorBase class for input/output related errors.
- exception scitex_core.errors.FileFormatError(filepath, expected_format=None, actual_format=None)[source]
Bases:
IOErrorRaised when file format is not supported or incorrect.
- exception scitex_core.errors.SaveError(filepath, reason)[source]
Bases:
IOErrorRaised when saving data fails.
- exception scitex_core.errors.LoadError(filepath, reason)[source]
Bases:
IOErrorRaised when loading data fails.
- exception scitex_core.errors.ScholarError(message, context=None, suggestion=None)[source]
Bases:
SciTeXErrorBase class for scholar module errors.
- exception scitex_core.errors.SearchError(query, source, reason)[source]
Bases:
ScholarErrorRaised when paper search fails.
- exception scitex_core.errors.EnrichmentError(paper_title, reason)[source]
Bases:
ScholarErrorRaised when paper enrichment fails.
- exception scitex_core.errors.PDFDownloadError(url, reason)[source]
Bases:
ScholarErrorRaised when PDF download fails.
- exception scitex_core.errors.DOIResolutionError(doi, reason)[source]
Bases:
ScholarErrorRaised when DOI resolution fails.
- exception scitex_core.errors.PDFExtractionError(filepath, reason)[source]
Bases:
ScholarErrorRaised when PDF text extraction fails.
- exception scitex_core.errors.BibTeXEnrichmentError(bibtex_file, reason)[source]
Bases:
ScholarErrorRaised when BibTeX enrichment fails.
- exception scitex_core.errors.TranslatorError(translator_name, reason)[source]
Bases:
ScholarErrorRaised when Zotero translator operations fail.
- exception scitex_core.errors.AuthenticationError(provider, reason='')[source]
Bases:
ScholarErrorRaised when authentication fails.
- exception scitex_core.errors.PlottingError(message, context=None, suggestion=None)[source]
Bases:
SciTeXErrorBase class for plotting-related errors.
- exception scitex_core.errors.FigureNotFoundError(fig_id)[source]
Bases:
PlottingErrorRaised when attempting to operate on a non-existent figure.
- exception scitex_core.errors.AxisError(message, axis_info=None)[source]
Bases:
PlottingErrorRaised when there are issues with plot axes.
- exception scitex_core.errors.DataError(message, context=None, suggestion=None)[source]
Bases:
SciTeXErrorBase class for data processing errors.
- exception scitex_core.errors.ShapeError(expected_shape, actual_shape, operation)[source]
Bases:
DataErrorRaised when data shapes are incompatible.
- exception scitex_core.errors.DTypeError(expected_dtype, actual_dtype, operation)[source]
Bases:
DataErrorRaised when data types are incompatible.
- exception scitex_core.errors.PathError(message, context=None, suggestion=None)[source]
Bases:
SciTeXErrorBase class for path-related errors.
- exception scitex_core.errors.InvalidPathError(path, reason)[source]
Bases:
PathErrorRaised when a path is invalid or doesn’t follow SciTeX conventions.
- exception scitex_core.errors.PathNotFoundError(path)[source]
Bases:
PathErrorRaised when a required path doesn’t exist.
- exception scitex_core.errors.TemplateError(message, context=None, suggestion=None)[source]
Bases:
SciTeXErrorBase class for template-related errors.
- exception scitex_core.errors.TemplateViolationError(filepath, violation)[source]
Bases:
TemplateErrorRaised when SciTeX template is not followed.
- exception scitex_core.errors.NNError(message, context=None, suggestion=None)[source]
Bases:
SciTeXErrorBase class for neural network module errors.
- exception scitex_core.errors.ModelError(model_name, reason)[source]
Bases:
NNErrorRaised when there are issues with neural network models.
- exception scitex_core.errors.StatsError(message, context=None, suggestion=None)[source]
Bases:
SciTeXErrorBase class for statistics module errors.
- exception scitex_core.errors.TestError(test_name, reason)[source]
Bases:
StatsErrorRaised when statistical tests fail.
- scitex_core.errors.warn_deprecated(old_function, new_function, version=None)[source]
Issue a deprecation warning.
- scitex_core.errors.check_path(path)[source]
Validate a path according to SciTeX conventions.
- Parameters:
path (str) – The path to validate
- Raises:
InvalidPathError – If the path doesn’t follow SciTeX conventions
- Return type:
- scitex_core.errors.check_file_exists(filepath)[source]
Check if a file exists.
- Parameters:
filepath (str) – The file path to check
- Raises:
PathNotFoundError – If the file doesn’t exist
- Return type:
- scitex_core.errors.check_shape_compatibility(shape1, shape2, operation)[source]
Check if two shapes are compatible for an operation.
- Parameters:
- Raises:
ShapeError – If shapes are incompatible
- Return type: