Exception: Add exception with message box for not implement method.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-04-18 11:27:32 +02:00
1 parent 726921af6a
commit 52c4eec72a
5 files changed
+75 -8

No files matched your search

+8
View File
@@ -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)