-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructure to separate code of different FMI versions (#290)
- Loading branch information
1 parent
dc699ed
commit 6e52a62
Showing
29 changed files
with
11,002 additions
and
10,354 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
# Copyright (C) 2025 Modelon AB | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Lesser General Public License as published by | ||
# the Free Software Foundation, version 3 of the License. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Lesser General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Lesser General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
# This file contains the various exceptions classes used in PyFMI | ||
|
||
class FMUException(Exception): | ||
""" | ||
An FMU exception. | ||
""" | ||
pass | ||
|
||
class IOException(FMUException): | ||
""" | ||
Exception covering issues related to writing/reading data. | ||
""" | ||
pass | ||
|
||
class InvalidOptionException(FMUException): | ||
""" | ||
Exception covering issues related to invalid choices of options. | ||
""" | ||
pass | ||
|
||
class TimeLimitExceeded(FMUException): | ||
pass | ||
|
||
class InvalidFMUException(FMUException): | ||
""" | ||
Exception covering problems with the imported FMU. | ||
""" | ||
pass | ||
|
||
class InvalidXMLException(InvalidFMUException): | ||
""" | ||
Exception covering problem with the XML-file in the imported FMU. | ||
""" | ||
pass | ||
|
||
class InvalidBinaryException(InvalidFMUException): | ||
""" | ||
Exception covering problem with the binary in the imported FMU. | ||
""" | ||
pass | ||
|
||
class InvalidVersionException(InvalidFMUException): | ||
""" | ||
Exception covering problem with the version of the imported FMU. | ||
""" | ||
pass |
Oops, something went wrong.