-
Notifications
You must be signed in to change notification settings - Fork 33
/
exceptions.py
38 lines (25 loc) · 1021 Bytes
/
exceptions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
__all__ = [
"BackendError",
"BackendFeatureNotSupportedError",
"InverseKinematicsError",
"KinematicsError",
]
class BackendError(Exception):
"""Indicates an exceptional state that caused an error
within the backend engine."""
def __init__(self, message):
super(BackendError, self).__init__(message)
class BackendFeatureNotSupportedError(Exception):
"""Indicates that the selected backend does not support the selected feature."""
pass
class KinematicsError(BackendError):
"""Indicates a kinematic solver exception."""
def __init__(self, message):
super(KinematicsError, self).__init__(message)
class InverseKinematicsError(KinematicsError):
"""Indicates that no IK solution could be found by the kinematic solver."""
def __init__(self):
super(InverseKinematicsError, self).__init__("No inverse kinematics solution found.")