Page MenuHomePhabricator (Chris)

No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
diff --git a/util/load_exception.cpp b/util/load_exception.cpp
index 2d358633..96e8109d 100644
--- a/util/load_exception.cpp
+++ b/util/load_exception.cpp
@@ -1,14 +1,16 @@
#include <string>
#include "load_exception.h"
+using namespace std;
+
LoadException::LoadException():
exception(){
}
LoadException::LoadException( const string & reason ):
exception(){
this->reason = reason;
}
LoadException::~LoadException() throw(){
}
diff --git a/util/load_exception.h b/util/load_exception.h
index c6d931f4..234959e4 100644
--- a/util/load_exception.h
+++ b/util/load_exception.h
@@ -1,28 +1,26 @@
#ifndef _load_exception_h
#define _load_exception_h
/* Generic load exception class. Thrown whenever a structure is being created
* and an error occurs.
*/
#include <exception>
#include <string>
-using namespace std;
-
-class LoadException: public exception {
+class LoadException: public std::exception {
public:
LoadException();
- LoadException( const string & reason );
+ LoadException( const std::string & reason );
- inline const string & getReason() const {
+ inline const std::string & getReason() const {
return reason;
}
virtual ~LoadException() throw();
protected:
- string reason;
+ std::string reason;
};
#endif

File Metadata

Mime Type
text/x-diff
Expires
Thu, Jun 11, 1:49 PM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
69324
Default Alt Text
(1 KB)

Event Timeline