Skip to content

Commit

Permalink
YDA-5992: init UUError message
Browse files Browse the repository at this point in the history
  • Loading branch information
lwesterhof committed Dec 3, 2024
1 parent 2943ea7 commit e863948
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions util/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

class UUError(Exception):
"""Generic Python rule error."""
def __init__(self, message):
self.message = message
super(UUError, self).__init__(message)


class UUFileSizeError(UUError):
Expand Down
2 changes: 1 addition & 1 deletion util/msi.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def _make_exception(name, message):
data_obj_write, DataObjWriteError = make('DataObjWrite', 'Could not write data object')
data_obj_close, DataObjCloseError = make('DataObjClose', 'Could not close data object')
data_obj_copy, DataObjCopyError = make('DataObjCopy', 'Could not copy data object')
data_obj_repl, DataObjReplError = make('DataObjRepl', 'Could not replicate data object')
data_obj_repl, DataObjReplError = make('DataObjRepl', 'Could not replicate data object')
data_obj_unlink, DataObjUnlinkError = make('DataObjUnlink', 'Could not remove data object')
data_obj_rename, DataObjRenameError = make('DataObjRename', 'Could not rename data object')
data_obj_chksum, DataObjChksumError = make('DataObjChksum', 'Could not checksum data object')
Expand Down

0 comments on commit e863948

Please sign in to comment.