equal
deleted
inserted
replaced
|
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
|
2 // Use of this source code is governed by a BSD-style license that can be |
|
3 // found in the LICENSE file. |
|
4 |
|
5 package org.chromium.sdk; |
|
6 |
|
7 /** |
|
8 * A JavaScript exception data holder for exceptions reported by a JavaScript |
|
9 * virtual machine. |
|
10 */ |
|
11 public interface ExceptionData { |
|
12 |
|
13 /** |
|
14 * @return the thrown exception object |
|
15 */ |
|
16 JsObject getExceptionObject(); |
|
17 |
|
18 /** |
|
19 * @return whether this exception is uncaught |
|
20 */ |
|
21 boolean isUncaught(); |
|
22 |
|
23 /** |
|
24 * @return the text of the source line where the exception was thrown |
|
25 */ |
|
26 String getSourceText(); |
|
27 |
|
28 /** |
|
29 * @return the exception description (plain text) |
|
30 */ |
|
31 String getExceptionMessage(); |
|
32 } |