Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- `MemorError` class
### Changed
- `LLMModel` enum updated
## [1.1] - 2025-12-23
Expand Down
2 changes: 1 addition & 1 deletion memor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
from .prompt import Prompt, Role
from .response import Response
from .session import Session
from .errors import MemorRenderError, MemorValidationError
from .errors import MemorError, MemorRenderError, MemorValidationError

__version__ = MEMOR_VERSION
8 changes: 6 additions & 2 deletions memor/errors.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# -*- coding: utf-8 -*-
"""Memor errors."""

class MemorError(Exception):
"""Base class for all errors in Memor."""

class MemorValidationError(ValueError):
pass

class MemorValidationError(MemorError, ValueError):
"""Base class for validation errors in Memor."""

pass


class MemorRenderError(Exception):
class MemorRenderError(MemorError):
"""Base class for render error in Memor."""

pass
Loading