Babel
Epitech's C++ VoIP project
BabelException.hpp
Go to the documentation of this file.
1 //
2 // Created by cbihan on 20/09/2021.
3 //
4 
5 #pragma once
6 
7 #include <stdexcept>
8 
9 namespace Babel::Exception
10 {
12  class BabelException : public std::runtime_error
13  {
14  public:
17  explicit BabelException(const std::string &str = "Babel exception")
18  : std::runtime_error(str)
19  {
20  }
21 
23  BabelException(const BabelException &) = default;
24 
26  ~BabelException() override = default;
27  };
28 }
Babel::Exception::BabelException
Base Project Exception.
Definition: BabelException.hpp:12
Babel::Exception
Definition: BabelException.hpp:9
Babel::Exception::BabelException::BabelException
BabelException(const std::string &str="Babel exception")
Base Project Exception.
Definition: BabelException.hpp:17
Babel::Exception::BabelException::~BabelException
~BabelException() override=default
Default destructor.