Oracle 视图 ALL_JAVA_THROWS 官方解释,作用,如何使用详细说明
本站中文解释
ALL_JAVA_THROWS是Oracle中封装在数据视图ALL_JAVA_THROWS中的系统表,用于记录Oracle中由异常反映出来的信息。它存储了类中的异常信息,如类名、方法、异常类名、是否是Checked Exception等。
使用ALL_JAVA_THROWS来查询表中的异常信息,可以使用SELECT语句,如:
SELECT * FROM ALL_JAVA_THROWS WHERE OWNER = ‘TESTUSER’ AND CLASS_NAME = ‘MyClass’
上述语句将查出OWNER为TESTUSER,类名为MyClass的所有的异常信息。此外,ALL_JAVA_THROWS还可以用于检查Java程序中是否已经抛出异常,或者检查类中是否存在异常。
官方英文解释
ALL_JAVA_THROWS
displays information about exceptions thrown from methods of the Java classes accessible to the current user.
Related Views
-
DBA_JAVA_THROWS
displays information about exceptions thrown from methods of all Java classes in the database. -
USER_JAVA_THROWS
displays information about exceptions thrown from methods of the Java classes owned by the current user. This view does not display theOWNER
column.
Column | Datatype | NULL | Description |
---|---|---|---|
|
|
|
Owner of the Java class |
|
|
Name of the Java class |
|
|
|
Index of the throwing method of the exception |
|
|
|
Name of the throwing method of the exception |
|
|
|
Index of the exception |
|
|
|
Class of the exception |
See Also:
-
“DBA_JAVA_THROWS”
-
“USER_JAVA_THROWS”