exceptions.py
来自「finite element library for mathematic ma」· Python 代码 · 共 24 行
PY
24 行
"This module defines exceptions for FFC."__author__ = "Anders Logg (logg@simula.no)"__date__ = "2005-09-14"__copyright__ = "Copyright (C) 2005 Anders Logg"__license__ = "GNU GPL version 3 or any later version"class FFCError(Exception): "Base class for FFC exceptions." passclass FormError(FFCError): """Exception raised for errors in the definition of a form. Attributes: expression -- input expression in which the error occurred message -- explanation of the error """ def __init__(self, expression, message): "Create FormError." self.expression = expression self.message = message return
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?