Source code for obci.analysis.obci_signal_processing.signal.signal_exceptions
#!/usr/bin/env python3
# OpenBCI - framework for Brain-Computer Interfaces based on EEG signal
# Project was initiated by Magdalena Michalska and Krzysztof Kulewski
# as part of their MSc theses at the University of Warsaw.
# Copyright (C) 2008-2009 Krzysztof Kulewski and Magdalena Michalska
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Author:
# Mateusz KruszyĆski <mateusz.kruszynski@gmail.com>
#
[docs]class NoNextValue(Exception):
"""Raised when end of data file is met in self.get_next_value()."""
pass
[docs]class NoNextTag(Exception):
"""Raised when end of tag file is met in self.get_next_tag()."""
pass
[docs]class NoParameter(Exception):
"""Raised when a ther is a requrest for non-existing parameter in
info file."""
def __init__(self, p_param):
self._param = p_param
def __str__(self):
return "No parameter '" + self._param + "' was found in info source!"