Java 错误和警告列表
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2326831/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
A list of Java errors and warnings
提问by missingfaktor
Where/How could I get a list of all the java and javac's error and warning messages?
我在哪里/如何获得所有 java 和 javac 的错误和警告消息的列表?
回答by J.B.
mindprod.com has a Java Glossary with runtime and compile time lists:
mindprod.com 有一个包含运行时和编译时间列表的 Java 词汇表:
http://mindprod.com/jgloss/errormessages.html
http://mindprod.com/jgloss/errormessages.html
Hope that helps
希望有帮助
回答by Kevin Vermeer
This list of exceptionsis much more interesting than any of the above answers.
这个例外列表比上述任何一个答案都有趣得多。
It might not be as useful or as complete, but it's good reading nonetheless.
它可能没有那么有用或不完整,但它仍然是很好的阅读。
回答by Collin Price
Do you mean Java Exception?
你的意思是Java异常?
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Exception.html
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Exception.html
This is a list of every exception that Java will at run-time. If you are refering to syntax errors you maybe look at learning Java
这是 Java 在运行时会出现的每个异常的列表。如果您指的是语法错误,您可能会考虑学习 Java
回答by Andrzej Doyle
You could look through the source code, since it's open source.
您可以查看源代码,因为它是开源的。
But more importantly - I can't think of a single reason why you'd want to do this. What's your realquestion here; what are you trying to achieve? It's almost certain you're going about it in a suboptimal fashion...
但更重要的是 - 我想不出一个你想要这样做的原因。你真正的问题是什么?你想达到什么目的?几乎可以肯定你会以一种次优的方式来处理它......

