mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
added basic create error exception
This commit is contained in:
parent
88abb05a19
commit
271b02ece3
2 changed files with 12 additions and 0 deletions
|
|
@ -1,4 +1,5 @@
|
|||
from .creator_plugins import (
|
||||
CreatorError,
|
||||
BaseCreator,
|
||||
Creator,
|
||||
AutoCreator
|
||||
|
|
@ -11,6 +12,7 @@ from .context import (
|
|||
|
||||
|
||||
__all__ = (
|
||||
"CreatorError",
|
||||
"BaseCreator",
|
||||
"Creator",
|
||||
"AutoCreator",
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue