added basic create error exception

This commit is contained in:
iLLiCiTiT 2021-08-13 11:43:15 +02:00
parent 88abb05a19
commit 271b02ece3
2 changed files with 12 additions and 0 deletions

View file

@ -1,4 +1,5 @@
from .creator_plugins import (
CreatorError,
BaseCreator,
Creator,
AutoCreator
@ -11,6 +12,7 @@ from .context import (
__all__ = (
"CreatorError",
"BaseCreator",
"Creator",
"AutoCreator",

View file

@ -11,6 +11,16 @@ import six
from openpype.lib import get_subset_name
class CreatorError(Exception):
"""Should be raised when creator failed because of known issue.
Message of error should be user readable.
"""
def __init__(self, message):
super(CreatorError, self).__init__(message)
@six.add_metaclass(ABCMeta)
class BaseCreator:
"""Plugin that create and modify instance data before publishing process.