blob: f02941e8f43bdfc47ae6674495f0693f6936f977 [file] [log] [blame]
Alexander Afanasyeva9034b02014-01-26 18:32:02 -08001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
3 * Copyright (C) 2014 Named Data Networking Project
4 * See COPYING for copyright and distribution information.
5 */
6
Alexander Afanasyev0eb70652014-02-27 18:35:07 -08007#ifndef NFD_FACE_PROTOCOL_FACTORY_HPP
8#define NFD_FACE_PROTOCOL_FACTORY_HPP
Alexander Afanasyeva9034b02014-01-26 18:32:02 -08009
10#include "common.hpp"
11
Alexander Afanasyev18bbf812014-01-29 01:40:23 -080012namespace nfd {
Alexander Afanasyeva9034b02014-01-26 18:32:02 -080013
Alexander Afanasyev0eb70652014-02-27 18:35:07 -080014class ProtocolFactory
Alexander Afanasyeva9034b02014-01-26 18:32:02 -080015{
16public:
Alexander Afanasyeva9034b02014-01-26 18:32:02 -080017 /**
18 * \brief Base class for all exceptions thrown by channel factories
19 */
20 struct Error : public std::runtime_error
21 {
22 Error(const std::string& what) : std::runtime_error(what) {}
23 };
Alexander Afanasyeva9034b02014-01-26 18:32:02 -080024};
25
Alexander Afanasyev18bbf812014-01-29 01:40:23 -080026} // namespace nfd
Alexander Afanasyeva9034b02014-01-26 18:32:02 -080027
Alexander Afanasyev0eb70652014-02-27 18:35:07 -080028#endif // NFD_FACE_PROTOCOL_FACTORY_HPP