redis3m
1.0.0
Main Page
Related Pages
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
Pages
include
redis3m
utils
exception.h
1
// Copyright (c) 2014 Luca Marturana. All rights reserved.
2
// Licensed under Apache 2.0, see LICENSE for details
3
4
#pragma once
5
6
#include <exception>
7
#include <string>
8
9
namespace
redis3m {
10
class
exception
:
public
std::exception
11
{
12
public
:
13
exception
(
const
std::string& what):
14
_what(what){}
15
virtual
~
exception
()
throw
() {}
16
17
inline
virtual
const
char
* what()
18
{
19
return
_what.c_str();
20
}
21
private
:
22
std::string _what;
23
};
24
}
25
26
#define REDIS3M_EXCEPTION(name) class name: public redis3m::exception {\
27
public: name(const std::string& what=""): exception(what){}};
redis3m::exception
Definition:
exception.h:10
Generated on Fri May 2 2014 16:52:23 for redis3m by
1.8.6