From af82c8b720a36e619e9280b2cd1e950275e77371 Mon Sep 17 00:00:00 2001 From: Janosh Riebesell Date: Wed, 31 Jul 2024 14:30:10 -0400 Subject: [PATCH] breaking: fix N818 Exception name `QTKException` should be named with an Error suffix --- src/qtoolkit/core/exceptions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/qtoolkit/core/exceptions.py b/src/qtoolkit/core/exceptions.py index 74b0104..2ae0950 100644 --- a/src/qtoolkit/core/exceptions.py +++ b/src/qtoolkit/core/exceptions.py @@ -1,22 +1,22 @@ -class QTKException(Exception): +class QTKError(Exception): """Base class for all the exceptions generated by qtoolkit.""" -class CommandFailedError(QTKException): +class CommandFailedError(QTKError): """ Exception raised when the execution of a command has failed, typically by a non-zero return code. """ -class OutputParsingError(QTKException): +class OutputParsingError(QTKError): """ Exception raised when errors are recognized during the parsing of the outputs of command. """ -class UnsupportedResourcesError(QTKException): +class UnsupportedResourcesError(QTKError): """ Exception raised when the resources requested are not supported in qtoolkit for the chosen scheduler.