mirror of
https://github.com/natelandau/obsidian-metadata.git
synced 2025-11-15 16:33:48 -05:00
* feat: add custom exceptions to metadata creation * refactor: utility function for finding inline metadata in content * fix: use InlineTagError for exceptions parsing inline tags * fix: improve error messages * build(deps): bump dependencies * fix: use BadParameter exception when appropriate
18 lines
467 B
Python
18 lines
467 B
Python
"""Custom exceptions for the obsidian_metadata package."""
|
|
|
|
|
|
class ObsidianMetadataError(Exception):
|
|
"""Base exception for the obsidian_metadata package."""
|
|
|
|
|
|
class FrontmatterError(ObsidianMetadataError):
|
|
"""Exception for errors in the frontmatter."""
|
|
|
|
|
|
class InlineMetadataError(ObsidianMetadataError):
|
|
"""Exception for errors in the inlined metadata."""
|
|
|
|
|
|
class InlineTagError(ObsidianMetadataError):
|
|
"""Exception for errors in the inline tags."""
|