Source code for obci_readmanager.signal_processing.signal.signal_exceptions
# -*- coding: utf-8 -*-
# Copyright (c) 2016-2018 Braintech Sp. z o.o. [Ltd.] <http://www.braintech.pl>
# All rights reserved.
"""Module provides classes for exceptions raised from DataProxy."""
[docs]class NoNextValue(Exception):
"""Raised when end of data file is met in self.get_next_value()."""
[docs]class NoNextTag(Exception):
"""Raised when end of tag file is met in self.get_next_tag()."""
[docs]class NoParameter(Exception):
"""Raised when there is a request for non-existing parameter in info file."""
def __init__(self, p_param):
"""Initialize parameter."""
self._param = p_param
def __str__(self):
"""Return Exception message."""
return "No parameter '{}' was found in info source!".format(self._param)