Source code for watertap.custom_exceptions

#################################################################################
# WaterTAP Copyright (c) 2020-2026, The Regents of the University of California,
# through Lawrence Berkeley National Laboratory, Oak Ridge National Laboratory,
# National Laboratory of the Rockies, and National Energy Technology
# Laboratory (subject to receipt of any required approvals from the U.S. Dept.
# of Energy). All rights reserved.
#
# Please see the files COPYRIGHT.md and LICENSE.md for full copyright and license
# information, respectively. These files are also available online at the URL
# "https://github.com/watertap-org/watertap/"
#################################################################################
[docs]class FrozenPipes(Exception): """ Custom exception for WaterTAP developer errors. Raised when there's an issue that indicates a problem with the model implementation or configuration, rather than user input. Parameters ---------- message : str Error message describing the issue """
[docs] def __init__(self, message): self.message = message super().__init__(self.message)
def __str__(self): return f"FrozenPipes: {self.message}"