mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Exception: Add exception with message box for not implement method.
This commit is contained in:
1 parent
726921af6a
commit
52c4eec72a
5 files changed
+75
-8
No files matched your search
@@ -1,5 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from Model.Except import NotImplementedMethodeError
|
||||
|
||||
class Point(object):
|
||||
def __init__(self, name:str = ""):
|
||||
super(Point, self).__init__()
|
||||
@@ -20,3 +22,9 @@ class Point(object):
|
||||
True if the point is named.
|
||||
"""
|
||||
return self._name.strip() != ""
|
||||
|
||||
def is_nan(self):
|
||||
raise NotImplementedMethodeError(self, self.is_nan)
|
||||
|
||||
def dist(self, p2):
|
||||
raise NotImplementedMethodeError(self, self.dist)
|
||||
Reference in new issue
Block a user