# -*- coding: utf-8 -*-
-# Copyright (C) 2016-2021 EDF R&D
+# Copyright (C) 2016-2024 EDF
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
#
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+"""Message d'erreur"""
class fissError(Exception):
- """
- usage:
+ """ Usage:
try:
instructions()
except:
- raise fissError(traceback.extract_stack(),"mon message")
+ raise fissError(traceback.extract_stack(),"mon message")
"""
def __init__(self, pile, msg):
- self.pile = pile
+ self.pile = pile
self.msg = msg
def __str__(self):
- return 'msg=%s\npile=%s\n'%(self.msg, repr(self.pile))
-
+ return 'msg={}\npile={}\n'.format(self.msg, repr(self.pile))