views:

121

answers:

5

Where/How could I get a list of all the java and javac's error and warning messages?

A: 

Do you mean Java Exception?

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

Collin Price
That certainly covers a part of it, but what about the warning messages?
Saif
A: 

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 real question here; what are you trying to achieve? It's almost certain you're going about it in a suboptimal fashion...

Andrzej Doyle
That would be the long way around. I am developing an Arabic translation to Java and would like to translate the errors and messages too.
Saif
+2  A: 

This page is I think what you need.

missingfaktor
What about warnings?
Saif
@Saif - I doubt that list contains *all* error messages.
Stephen C
@Saif : From a bit of googling I just did, this seems to be the only compilation of its sort.
missingfaktor
@Stephen : The page doesn't list the **warning** messages of javac.
missingfaktor
guess i'll be heading for the jdk source code sooner or later :(
Saif
@Saif : Going thru Java Language Spec may help you.
missingfaktor
@Rahul G: Thanks! I just found the book on amazon, looks great :D
Saif
+1  A: 

mindprod.com has a Java Glossary with runtime and compile time lists:

http://mindprod.com/jgloss/errormessages.html

Hope that helps

J.B.
Duplicate answer.
missingfaktor
A: 

This list of exceptions is much more interesting than any of the above answers.

It might not be as useful or as complete, but it's good reading nonetheless.

reemrevnivek
Sorry..........
reemrevnivek