PDA

View Full Version : Suppressing Java Errors


JavaTest?
02-05-2003, 08:13 PM
Is there a way to suppress java errors in Internet Explorer?

arnyinc
02-05-2003, 09:39 PM
Fix them.

In other words, not that I know of.

bcarl314
02-06-2003, 12:32 PM
Yes, you can catch them or throw them. But if you code doesn't compile, you'll have to do what arnyinc says and just fix em.

to catch, use a try catch block
public class myClass () {
try {
//stuff to try
}
catch {
// stuff to catch
}
}

to throw an error,

public class myClass() throws IOException {
//do stuff here
}