Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/phrocker/BjarneClient
Browse files Browse the repository at this point in the history
  • Loading branch information
marc committed Apr 13, 2013
2 parents 04e6a47 + 3ff9fdb commit b5ea55c
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/data/extern/thrift/ioexceptions.h
@@ -0,0 +1,36 @@
#ifndef IOEXCEPTIONS_H
#define IOEXCEPTIONS_H

#include <string>
#include <iostream>
#include <typeinfo>
using namespace std;

/**
@file ioexceptions.h
@author Marc Parisi <marc.parisi@g2-inc.com>
@version 1.0
@section DESCRIPTION
Contains the IO related exceptions.
*/

namespace IO
{

struct TabletException : public std::exception
{
std::string s;
TabletException(std::string ss) : s(ss) {}
~TabletException() throw ()
{

}
const char* what() const throw() {
return s.c_str();
}
};
}

#endif
36 changes: 36 additions & 0 deletions src/ioexceptions.h
@@ -0,0 +1,36 @@
#ifndef IOEXCEPTIONS_H
#define IOEXCEPTIONS_H

#include <string>
#include <iostream>
#include <typeinfo>
using namespace std;

/**
@file ioexceptions.h
@author Marc Parisi <marc.parisi@g2-inc.com>
@version 1.0
@section DESCRIPTION
Contains the IO related exceptions.
*/

namespace IO
{

struct TabletException : public std::exception
{
std::string s;
TabletException(std::string ss) : s(ss) {}
~TabletException() throw ()
{

}
const char* what() const throw() {
return s.c_str();
}
};
}

#endif
36 changes: 36 additions & 0 deletions src/ioexceptions.h~
@@ -0,0 +1,36 @@
#ifndef IOEXCEPTIONS
#define IOEXCEPTIONS

#include <iostream>
#include <typeinfo>
#include "compressor/algorithm.h"
using namespace std;

/**
@file ioexceptions.h
@author Marc Parisi <marc.parisi@g2-inc.com>
@version 0.9
@section DESCRIPTION
Contains the IO related exceptions.


*/

namespace IO
{

struct TabletException : public std::exception
{
std::string s;
TabletException(std::string ss) : s(ss) {}
~TabletException() throw ()
{

}
const char* what() const throw() {
return s.c_str();
}
};
}

#endif

0 comments on commit b5ea55c

Please sign in to comment.