src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Imports/ImportNode.py

branch
eric7
changeset 9272
06ed98a19b79
parent 9221
bf71ee032bb4
child 9278
36448ca469c2
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Imports/ImportNode.py	Wed Jul 27 15:01:13 2022 +0200
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/Imports/ImportNode.py	Wed Jul 27 15:51:27 2022 +0200
@@ -17,7 +17,7 @@
 from .ImportsEnums import GroupEnum, NodeTypeEnum
 
 
-class ImportNodeException(Exception):
+class ImportNodeError(Exception):
     """
     Class representing an exception for an invalid import node.
     """
@@ -41,11 +41,11 @@
         @type ast.AST
         @param checker reference to the checker object
         @type ImportsChecker
-        @exception ImportNodeException raised to indicate an invalid node was
+        @exception ImportNodeError raised to indicate an invalid node was
             given to this class
         """
         if not isinstance(astNode, (ast.Import, ast.ImportFrom)):
-            raise ImportNodeException(
+            raise ImportNodeError(
                 "Node type {0} not recognized".format(type(astNode))
             )
 
@@ -123,11 +123,11 @@
 
         @return string representation of the instance
         @rtype str
-        @exception ImportNodeException raised to indicate an invalid node was
+        @exception ImportNodeError raised to indicate an invalid node was
             given to this class
         """
         if self.nodeType not in (NodeTypeEnum.IMPORT, NodeTypeEnum.IMPORT_FROM):
-            raise ImportNodeException(
+            raise ImportNodeError(
                 "The node type {0} is not recognized.".format(self.nodeType)
             )
 

eric ide

mercurial