Island: Move SizeError to its own file

This commit is contained in:
Shreya Malviya 2022-07-19 18:12:41 +05:30
parent 0111dea47f
commit 4e755bbd2f
3 changed files with 8 additions and 6 deletions

View File

@ -15,3 +15,4 @@ from .data_store_encryptor import (
reset_datastore_encryptor,
)
from .encryption_key_types import EncryptionKey32Bytes
from .errors import SizeError

View File

@ -1,9 +1,4 @@
class SizeError(Exception):
"""
Raised when an argument is not of the expected size during object creation.
"""
pass
from . import SizeError
class EncryptionKey32Bytes(bytes):

View File

@ -0,0 +1,6 @@
class SizeError(Exception):
"""
Raised when an argument is not of the expected size during object creation.
"""
pass