Updated
This commit is contained in:
37
Scripts/Animation/epic_pose_wrangler/model/exceptions.py
Normal file
37
Scripts/Animation/epic_pose_wrangler/model/exceptions.py
Normal file
@ -0,0 +1,37 @@
|
||||
# Copyright Epic Games, Inc. All Rights Reserved.
|
||||
from epic_pose_wrangler.log import LOG
|
||||
|
||||
class PoseWranglerException(Exception):
|
||||
"""
|
||||
Base Exception for PoseWrangler related errors
|
||||
"""
|
||||
|
||||
def __init__(self, message):
|
||||
super(PoseWranglerException, self).__init__(message)
|
||||
# Log the message as an error
|
||||
LOG.error(message)
|
||||
|
||||
class InvalidPoseWranglerPlugin(PoseWranglerException, RuntimeError):
|
||||
"""
|
||||
Exception raised when no valid plugins could be loaded
|
||||
"""
|
||||
|
||||
class PoseWranglerSettingsError(PoseWranglerException):
|
||||
"""
|
||||
Raised when a setting is invalid
|
||||
"""
|
||||
|
||||
class InvalidMirrorMapping(PoseWranglerSettingsError):
|
||||
"""
|
||||
Raised when the mirror mapping is incorrect
|
||||
"""
|
||||
|
||||
class PoseWranglerIOError(PoseWranglerException):
|
||||
"""
|
||||
Raised when issues with serialization/deserialization arise
|
||||
"""
|
||||
|
||||
class PoseWranglerFunctionalityNotImplemented(PoseWranglerException):
|
||||
"""
|
||||
Raised when pose wrangler functionality hasn't been implemented yet
|
||||
"""
|
Reference in New Issue
Block a user