Skip to content

Commit

Permalink
file-based: update messages for not implemented errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aldogonzalez8 committed Feb 11, 2025
1 parent 791241c commit b74a005
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions airbyte_cdk/sources/file_based/file_based_stream_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def get_file_acl_permissions(self, file: RemoteFile, logger: logging.Logger) ->
ACL Permissions from files.
"""
raise NotImplementedError(
f"{self.__class__.__name__} required to support ACL permissions, please update file_permissions_schema accordingly."
f"{self.__class__.__name__} does not implement get_file_acl_permissions(). To support ACL permissions, implement this method and update file_permissions_schema."
)

@abstractmethod
Expand All @@ -202,7 +202,7 @@ def load_identity_groups(self, logger: logging.Logger) -> Iterable[Dict[str, Any
identities.
"""
raise NotImplementedError(
f"{self.__class__.__name__} required to support identities, please update identities_schema."
f"{self.__class__.__name__} does not implement load_identity_groups(). To support identities, implement this method and update identities_schema."
)

@property
Expand All @@ -213,7 +213,7 @@ def file_permissions_schema(self) -> Dict[str, Any]:
ACL Permissions from files.
"""
raise NotImplementedError(
f"{self.__class__.__name__} required to support ACL Permissions, please return required json schema for your permissions streams."
f"{self.__class__.__name__} does not implement file_permissions_schema, please return json schema for your permissions streams."
)

@property
Expand All @@ -224,5 +224,5 @@ def identities_schema(self) -> Dict[str, Any]:
identities.
"""
raise NotImplementedError(
f"{self.__class__.__name__} required to support fetch Identities, please return required json schema for your Identities stream."
f"{self.__class__.__name__} does not implement identities_schema, please return json schema for your identities stream."
)

0 comments on commit b74a005

Please sign in to comment.