//
// Created by Dan Crosby on 11/4/21.
//

#ifndef EAGLE0_INVALIDPROTOEXCEPTION_HPP
#define EAGLE0_INVALIDPROTOEXCEPTION_HPP

namespace shardok::fb {

class InvalidProtoException : public std::exception {
private:
    const std::string desc;

public:
    explicit InvalidProtoException(const std::string& str) : desc(str) {}

    [[nodiscard]] const char* what() const noexcept override { return desc.c_str(); }
};

}  // namespace shardok::fb

#endif  // EAGLE0_INVALIDPROTOEXCEPTION_HPP
