/usr/include/givaro/giverror.h is in libgivaro-dev 3.2.13-1.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | #ifndef _GIVERROR_H_
#define _GIVERROR_H_
// ==========================================================================
// $Source: /var/lib/cvs/Givaro/src/kernel/system/giverror.h,v $
// Copyright(c)'94-97 by Givaro Team
// see the copyright file.
// Authors: T. Gautier
// $Id: giverror.h,v 1.2 2005/07/13 09:59:37 pernet Exp $
// ==========================================================================
// Description:
// - error exception
#include <iostream>
// ------------------------------- GivError
// - Base class for execption handling in Givaro
class GivError {
public:
GivError(const char* msg =0 )
: strg(msg) {};
virtual ~GivError() ;
// -- virtual print of the error message
virtual std::ostream& print( std::ostream& o ) const;
// -- non virtual output operator
friend std::ostream& operator<< (std::ostream& o, const GivError& E) ;
// - useful to setup a break point on it
static void throw_error( const GivError& err );
protected:
const char* strg;
};
class GivMathError : public GivError {
public:
virtual ~GivMathError() ;
GivMathError(const char* msg = 0) : GivError(msg) { }
};
// -- Exception thrown in input of data structure
class GivBadFormat : public GivError {
public:
virtual ~GivBadFormat();
GivBadFormat(const char* msg = 0) : GivError(msg) { }
};
class GivMathDivZero : public GivError {
public:
virtual ~GivMathDivZero();
GivMathDivZero(const char* msg = 0) : GivError(msg) { }
};
#endif
|