moved exceptions to workfile_template_builder

This commit is contained in:
Jakub Trllo 2022-09-13 15:30:31 +02:00
parent 30780efd48
commit 6c2c161ed4
2 changed files with 22 additions and 8 deletions

View file

@ -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,

View file

@ -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)