Skip to content

Commit

Permalink
refactor; expirement
Browse files Browse the repository at this point in the history
  • Loading branch information
doctrino committed Feb 7, 2025
1 parent d8b9e2e commit 17f443b
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions cognite/neat/_issues/errors/_wrapper.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,24 @@
from abc import ABC
from dataclasses import dataclass

from cognite.neat._issues import NeatError


@dataclass(unsafe_hash=True)
class MetadataValueError(NeatError, ValueError):
"""Field {field_name} - {error}"""
class SpreadsheetError(NeatError, ValueError, ABC):
location: str
error: NeatError
row: int


@dataclass(unsafe_hash=True)
class MetadataValueError(SpreadsheetError):
"""In {row}, the {location} - {error}"""


@dataclass(unsafe_hash=True)
class ViewValueError(SpreadsheetError):
"""View {view_name} - {error}"""

field_name: str
location: str
error: NeatError

0 comments on commit 17f443b

Please sign in to comment.