Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(419)

Side by Side Diff: include/v8.h

Issue 171042: Added API call to get the stack trace for an exception (Closed)
Patch Set: Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2272 matching lines...) Expand 10 before | Expand all | Expand 10 after
2283 2283
2284 /** 2284 /**
2285 * Returns the exception caught by this try/catch block. If no exception has 2285 * Returns the exception caught by this try/catch block. If no exception has
2286 * been caught an empty handle is returned. 2286 * been caught an empty handle is returned.
2287 * 2287 *
2288 * The returned handle is valid until this TryCatch block has been destroyed. 2288 * The returned handle is valid until this TryCatch block has been destroyed.
2289 */ 2289 */
2290 Local<Value> Exception() const; 2290 Local<Value> Exception() const;
2291 2291
2292 /** 2292 /**
2293 * Returns the .stack property of the thrown object. If no .stack
2294 * property is present an empty handle is returned.
2295 */
2296 Local<Value> StackTrace() const;
2297
2298 /**
2293 * Returns the message associated with this exception. If there is 2299 * Returns the message associated with this exception. If there is
2294 * no message associated an empty handle is returned. 2300 * no message associated an empty handle is returned.
2295 * 2301 *
2296 * The returned handle is valid until this TryCatch block has been 2302 * The returned handle is valid until this TryCatch block has been
2297 * destroyed. 2303 * destroyed.
2298 */ 2304 */
2299 Local<v8::Message> Message() const; 2305 Local<v8::Message> Message() const;
2300 2306
2301 /** 2307 /**
2302 * Clears any exceptions that may have been caught by this try/catch block. 2308 * Clears any exceptions that may have been caught by this try/catch block.
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
2722 2728
2723 } // namespace v8 2729 } // namespace v8
2724 2730
2725 2731
2726 #undef V8EXPORT 2732 #undef V8EXPORT
2727 #undef V8EXPORT_INLINE 2733 #undef V8EXPORT_INLINE
2728 #undef TYPE_CHECK 2734 #undef TYPE_CHECK
2729 2735
2730 2736
2731 #endif // V8_H_ 2737 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698