CocoaTweet
src
cocoatweet
exception
exception.h
Go to the documentation of this file.
1
#ifndef COCOATWEET_EXCEPTION_EXCEPTION_H_
2
#define COCOATWEET_EXCEPTION_EXCEPTION_H_
3
4
#include <string>
5
#include <exception>
6
7
namespace
CocoaTweet::Exception
{
8
class
Exception
:
public
std::exception {
9
public
:
10
Exception
(
const
char
* _msg) :
msg_
(std::string(_msg)) {}
11
Exception
(
const
std::string& _msg) :
msg_
(std::string(_msg)) {}
12
const
std::string&
what
() {
13
return
msg_
;
14
}
15
virtual
~Exception
() =
default
;
16
17
protected
:
18
std::string
msg_
;
19
};
20
}
// namespace CocoaTweet::Exception
21
22
#endif
CocoaTweet::Exception::Exception::what
const std::string & what()
Definition:
exception.h:12
CocoaTweet::Exception::Exception::~Exception
virtual ~Exception()=default
CocoaTweet::Exception::Exception::Exception
Exception(const char *_msg)
Definition:
exception.h:10
CocoaTweet::Exception
Definition:
authenticateException.h:6
CocoaTweet::Exception::Exception::msg_
std::string msg_
Definition:
exception.h:18
CocoaTweet::Exception::Exception::Exception
Exception(const std::string &_msg)
Definition:
exception.h:11
CocoaTweet::Exception::Exception
Definition:
exception.h:8
Generated by
1.8.17