mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 14:22:37 +01:00
moved exceptions to workfile_template_builder
This commit is contained in:
parent
30780efd48
commit
6c2c161ed4
2 changed files with 22 additions and 8 deletions
|
|
@ -3,10 +3,8 @@ import json
|
|||
from maya import cmds
|
||||
|
||||
from openpype.pipeline import registered_host
|
||||
from openpype.pipeline.workfile.build_template_exceptions import (
|
||||
TemplateAlreadyImported
|
||||
)
|
||||
from openpype.pipeline.workfile.workfile_template_builder import (
|
||||
TemplateAlreadyImported,
|
||||
AbstractTemplateBuilder,
|
||||
PlaceholderPlugin,
|
||||
PlaceholderItem,
|
||||
|
|
|
|||
|
|
@ -28,11 +28,27 @@ from openpype.pipeline.load import (
|
|||
)
|
||||
from openpype.pipeline.create import get_legacy_creator_by_name
|
||||
|
||||
from .build_template_exceptions import (
|
||||
TemplateProfileNotFound,
|
||||
TemplateLoadingFailed,
|
||||
TemplateNotFound,
|
||||
)
|
||||
|
||||
class TemplateNotFound(Exception):
|
||||
"""Exception raised when template does not exist."""
|
||||
pass
|
||||
|
||||
|
||||
class TemplateProfileNotFound(Exception):
|
||||
"""Exception raised when current profile
|
||||
doesn't match any template profile"""
|
||||
pass
|
||||
|
||||
|
||||
class TemplateAlreadyImported(Exception):
|
||||
"""Error raised when Template was already imported by host for
|
||||
this session"""
|
||||
pass
|
||||
|
||||
|
||||
class TemplateLoadFailed(Exception):
|
||||
"""Error raised whend Template loader was unable to load the template"""
|
||||
pass
|
||||
|
||||
|
||||
@six.add_metaclass(ABCMeta)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue