AlgoExceptions

Base class for tsa Exceptions.

Copyright (C) 2004 by Giancarlo Cella giancarlo.cella@pi.infn.it

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 2 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, write to the

Free Software Foundation, Inc.,

59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Author

Giancarlo Cella giancarlo.cella@pi.infn.it

Date

Sat Nov 13 17:21:06 2004

namespace tsa

The main namespace of the library.

tsa namespace

namespace

tsa namespace

Tag() is a small XML-tag-name formatting helper, kept (and still bound to Python, see py4tsa.cpp) even though its original caller — the DVECTOR_XML_SERIALIZE/DMATRIX_XML_SERIALIZE/BOOL_XML_SERIALIZE macros this file used to also define, wrapping the now-removed eternity XML persistence framework — is gone (see CerealPersistence.hpp for the modern replacement, plain Cereal serialize() members, no string tags needed).

class bad_matrix_size : public std::invalid_argument
#include <AlgoExceptions.hpp>

This exception should be used when a matrix argument of an algorithm has an incorrect size. It contains information about the correct expected size.

Public Functions

inline bad_matrix_size(const std::string &msg)

Constructor

Parameters:

msg – error message

class bad_vector_size : public std::invalid_argument
#include <AlgoExceptions.hpp>

This exception should be used when a vector argument of an algorithm has an incorrect size. It contains information about the correct expected size.

Public Functions

inline bad_vector_size(const std::string &msg)

Constructor

Parameters:

msg – error message

class no_data_available : public std::runtime_error
#include <AlgoExceptions.hpp>

This exception should be used when some processed data cannot be returned

Public Functions

inline no_data_available(const std::string &msg)

Constructor

Parameters:

msg – error message

class bad_value : public std::runtime_error
#include <AlgoExceptions.hpp>

This exception should be used when some processed data cannot be returned

Public Functions

inline bad_value()

Constructor

Parameters:

msg – error message

class missing_data : public std::runtime_error
#include <AlgoExceptions.hpp>

This exception should be used when some frames are missing

Public Functions

inline missing_data(const std::string &msg, double miss_start, double miss_end, unsigned int channel)

Constructor

Parameters:

msg – error message

inline double Start()
inline double End()
inline double Channel()

Private Members

double mStartPeriod
double mEndPeriod
unsigned int mChannel
class quality_change : public std::runtime_error
#include <AlgoExceptions.hpp>

This exception should be used when data quality change

Public Functions

inline quality_change(const std::string &msg, double change_time, unsigned int old_flag, unsigned int new_flag)

Constructor

Parameters:

msg – error message

inline double EventTime()
inline unsigned int OldFlag()
inline unsigned int NewFlag()

Private Members

double mEventTime
unsigned int mOldFlag
unsigned int mNewFlag