blob: 566063befb9c99b4808003a062296fbbbc03d32b [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
7#ifndef NFD_FACE_CHANNEL_FACTORY_HPP
8#define NFD_FACE_CHANNEL_FACTORY_HPP
9
10#include "common.hpp"
11
Alexander Afanasyev18bbf812014-01-29 01:40:23 -080012namespace nfd {
Alexander Afanasyeva9034b02014-01-26 18:32:02 -080013
Alexander Afanasyeva9034b02014-01-26 18:32:02 -080014class ChannelFactory
15{
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 };
24
Alexander Afanasyeva9034b02014-01-26 18:32:02 -080025};
26
Alexander Afanasyev18bbf812014-01-29 01:40:23 -080027} // namespace nfd
Alexander Afanasyeva9034b02014-01-26 18:32:02 -080028
29#endif // NFD_FACE_CHANNEL_FACTORY_HPP