Files
pylibbpf/src/core/bpf_exception.h
Pragyansh Chaturvedi 1c956da07f Janitorial clang-format
2025-10-19 04:06:54 +05:30

16 lines
379 B
C++

#ifndef PYLIBBPF_BPF_EXCEPTION_H
#define PYLIBBPF_BPF_EXCEPTION_H
#include <stdexcept>
#include <string>
class BpfException final : public std::runtime_error {
public:
explicit BpfException(const std::string &message)
: std::runtime_error(message) {}
explicit BpfException(const char *message) : std::runtime_error(message) {}
};
#endif // PYLIBBPF_BPF_EXCEPTION_H