summaryrefslogtreecommitdiff
path: root/libdeno/exceptions.h
diff options
context:
space:
mode:
Diffstat (limited to 'libdeno/exceptions.h')
-rw-r--r--libdeno/exceptions.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libdeno/exceptions.h b/libdeno/exceptions.h
index 362bbc0e6..e07ff183a 100644
--- a/libdeno/exceptions.h
+++ b/libdeno/exceptions.h
@@ -2,10 +2,17 @@
#ifndef EXCEPTIONS_H_
#define EXCEPTIONS_H_
+#include <string>
#include "third_party/v8/include/v8.h"
namespace deno {
+v8::Local<v8::Object> EncodeExceptionAsObject(v8::Local<v8::Context> context,
+ v8::Local<v8::Value> exception);
+
+std::string EncodeExceptionAsJSON(v8::Local<v8::Context> context,
+ v8::Local<v8::Value> exception);
+
void HandleException(v8::Local<v8::Context> context,
v8::Local<v8::Value> exception);