mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-03 00:18:20 +00:00
Change __self__.__classname__ to the actual class name in exceptions.
This commit is contained in:
parent
e29f16d3eb
commit
b5c440e4bc
1 changed files with 3 additions and 3 deletions
|
@ -50,15 +50,15 @@ NaN = float('nan')
|
||||||
|
|
||||||
class ELSLTypeMismatch(Exception):
|
class ELSLTypeMismatch(Exception):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(self.__class__, self).__init__("Type mismatch")
|
super(ELSLTypeMismatch, self).__init__("Type mismatch")
|
||||||
|
|
||||||
class ELSLMathError(Exception):
|
class ELSLMathError(Exception):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(self.__class__, self).__init__("Math Error")
|
super(self.ELSLMathError, self).__init__("Math Error")
|
||||||
|
|
||||||
class ELSLInvalidType(Exception):
|
class ELSLInvalidType(Exception):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super(self.__class__, self).__init__("Internal error: Invalid type")
|
super(self.ELSLInvalidType, self).__init__("Internal error: Invalid type")
|
||||||
|
|
||||||
# LSL types are translated to Python types as follows:
|
# LSL types are translated to Python types as follows:
|
||||||
# * LSL string -> Python unicode
|
# * LSL string -> Python unicode
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue