OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** \mainpage V8 API Reference Guide | 5 /** \mainpage V8 API Reference Guide |
6 * | 6 * |
7 * V8 is Google's open source JavaScript engine. | 7 * V8 is Google's open source JavaScript engine. |
8 * | 8 * |
9 * This set of documents provides reference material generated from the | 9 * This set of documents provides reference material generated from the |
10 * V8 header file, include/v8.h. | 10 * V8 header file, include/v8.h. |
(...skipping 4146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4157 * Create new error objects by calling the corresponding error object | 4157 * Create new error objects by calling the corresponding error object |
4158 * constructor with the message. | 4158 * constructor with the message. |
4159 */ | 4159 */ |
4160 class V8_EXPORT Exception { | 4160 class V8_EXPORT Exception { |
4161 public: | 4161 public: |
4162 static Local<Value> RangeError(Handle<String> message); | 4162 static Local<Value> RangeError(Handle<String> message); |
4163 static Local<Value> ReferenceError(Handle<String> message); | 4163 static Local<Value> ReferenceError(Handle<String> message); |
4164 static Local<Value> SyntaxError(Handle<String> message); | 4164 static Local<Value> SyntaxError(Handle<String> message); |
4165 static Local<Value> TypeError(Handle<String> message); | 4165 static Local<Value> TypeError(Handle<String> message); |
4166 static Local<Value> Error(Handle<String> message); | 4166 static Local<Value> Error(Handle<String> message); |
| 4167 |
| 4168 static Local<StackTrace> GetStackTrace(Handle<Value> exception); |
4167 }; | 4169 }; |
4168 | 4170 |
4169 | 4171 |
4170 // --- Counters Callbacks --- | 4172 // --- Counters Callbacks --- |
4171 | 4173 |
4172 typedef int* (*CounterLookupCallback)(const char* name); | 4174 typedef int* (*CounterLookupCallback)(const char* name); |
4173 | 4175 |
4174 typedef void* (*CreateHistogramCallback)(const char* name, | 4176 typedef void* (*CreateHistogramCallback)(const char* name, |
4175 int min, | 4177 int min, |
4176 int max, | 4178 int max, |
(...skipping 2870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7047 */ | 7049 */ |
7048 | 7050 |
7049 | 7051 |
7050 } // namespace v8 | 7052 } // namespace v8 |
7051 | 7053 |
7052 | 7054 |
7053 #undef TYPE_CHECK | 7055 #undef TYPE_CHECK |
7054 | 7056 |
7055 | 7057 |
7056 #endif // V8_H_ | 7058 #endif // V8_H_ |
OLD | NEW |