mirror of
https://github.com/haris-musa/excel-mcp-server.git
synced 2025-12-08 17:12:41 +08:00
Initial commit
This commit is contained in:
35
src/excel_mcp/exceptions.py
Normal file
35
src/excel_mcp/exceptions.py
Normal file
@ -0,0 +1,35 @@
|
||||
class ExcelMCPError(Exception):
|
||||
"""Base exception for Excel MCP errors."""
|
||||
pass
|
||||
|
||||
class WorkbookError(ExcelMCPError):
|
||||
"""Raised when workbook operations fail."""
|
||||
pass
|
||||
|
||||
class SheetError(ExcelMCPError):
|
||||
"""Raised when sheet operations fail."""
|
||||
pass
|
||||
|
||||
class DataError(ExcelMCPError):
|
||||
"""Raised when data operations fail."""
|
||||
pass
|
||||
|
||||
class ValidationError(ExcelMCPError):
|
||||
"""Raised when validation fails."""
|
||||
pass
|
||||
|
||||
class FormattingError(ExcelMCPError):
|
||||
"""Raised when formatting operations fail."""
|
||||
pass
|
||||
|
||||
class CalculationError(ExcelMCPError):
|
||||
"""Raised when formula calculations fail."""
|
||||
pass
|
||||
|
||||
class PivotError(ExcelMCPError):
|
||||
"""Raised when pivot table operations fail."""
|
||||
pass
|
||||
|
||||
class ChartError(ExcelMCPError):
|
||||
"""Raised when chart operations fail."""
|
||||
pass
|
||||
Reference in New Issue
Block a user