mirror of
https://github.com/varun-r-mallya/pylibbpf.git
synced 2026-02-12 16:11:00 +00:00
Add basic class along with exception and attach
Signed-off-by: varun-r-mallya <varunrmallya@gmail.com>
This commit is contained in:
16
src/core/bpf_exception.h
Normal file
16
src/core/bpf_exception.h
Normal file
@ -0,0 +1,16 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user