blob: fbd18125ff77c453c402addd7d0ff26c04b3aea7 [file] [log] [blame]
Yingdi Yu38e329b2013-10-10 22:11:35 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
2/*
3 * Copyright (c) 2013, Regents of the University of California
4 * Yingdi Yu
5 *
6 * BSD license, See the LICENSE file for more information
7 *
8 * Author: Yingdi Yu <yingdi@cs.ucla.edu>
9 */
10
11#ifndef LINKEDN_EXCEPTION_H
12#define LINKEDN_EXCEPTION_H
13
14#include <exception>
15#include <string>
16
17class LnException : public std::exception
18{
19public:
20 LnException(const std::string & errMsg) throw();
21
22 ~LnException() throw()
23 {}
24
25 inline const std::string&
26 msg() const
27 {return m_errMsg;}
28
29private:
30 const std::string m_errMsg;
31};
32
33#endif