/usr/include/cln/exception.h is in libcln-dev 1.3.2-1.1.
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 | // Exception types.
#ifndef _CL_EXCEPTION_H
#define _CL_EXCEPTION_H
#include <stdexcept>
namespace cln {
// Base class of all exception classes thrown by CLN.
class runtime_exception : public std::runtime_error {
public:
runtime_exception ()
: std::runtime_error(std::string()) {}
explicit runtime_exception (const std::string & what)
: std::runtime_error(what) {}
};
// Thrown when an assertion is violated.
class notreached_exception : public runtime_exception {
public:
notreached_exception (const char* filename, int lineno);
};
// Thrown when a pole is encountered.
class division_by_0_exception : public runtime_exception {
public:
division_by_0_exception ();
};
// Thrown when a conversion with As(TYPE)(VALUE) fails.
class as_exception : public runtime_exception {
public:
as_exception (const class cl_number& obj, const char * typestring, const char * filename, int line);
};
} // namespace cln
#endif /* _CL_EXCEPTION_H */
|