-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathms_error.hpp
More file actions
32 lines (24 loc) · 744 Bytes
/
ms_error.hpp
File metadata and controls
32 lines (24 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef __NODE_MS_ERROR_H__
#define __NODE_MS_ERROR_H__
#include <nan.h>
#include <mapserver.h>
#include "utils.hpp"
class MSError: public Nan::ObjectWrap {
public:
static Nan::Persistent<v8::FunctionTemplate> constructor;
static void Initialize(v8::Local<v8::Object> target);
static NAN_METHOD(New);
static v8::Local<v8::Value> NewInstance(errorObj* err_ptr);
static NAN_METHOD(ToString);
MSError();
MSError(errorObj *err);
inline errorObj *get() { return this_; }
errorObj *this_;
protected:
static NAN_PROPERTY_GETTER(NamedPropertyGetter);
static NAN_PROPERTY_QUERY(NamedPropertyQuery);
static NAN_PROPERTY_ENUMERATOR(NamedPropertyEnumerator);
private:
~MSError();
};
#endif