Luke Stamper wrote:
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
--------------------Configuration: Exception - JDK version 1.7.0 #5 <Default> - <Default>--------------------
F:\Object Java\OutputBinary.java:31: error: incompatible types
throw new MyException("The file could not be created.");
^
required: Throwable
found: MyException
1 error
Process completed.
--------------------Configuration: Exception - JDK version 1.7.0 #5 <Default> - <Default>--------------------
F:\Object Java\Binary.java:23: error: cannot find symbol
OutputText mto = null;
^
symbol: class OutputText
location: class Binary
F:\Object Java\Binary.java:24: error: cannot find symbol
OutputBinary mbo = null;
^
symbol: class OutputBinary
location: class Binary
F:\Object Java\Binary.java:36: error: cannot find symbol
mbo = new OutputBinary(fname);
^
symbol: class OutputBinary
location: class Binary
F:\Object Java\Binary.java:40: error: incompatible types
catch (MyException e){
^
required: Throwable
found: MyException
F:\Object Java\Binary.java:91: error: cannot find symbol
mto = new OutputText(fname);
^
symbol: class OutputText
location: class Binary
F:\Object Java\Binary.java:95: error: incompatible types
catch (MyException e){
^
required: Throwable
found: MyException
6 errors
Process completed.
Jason K. (AC)
Everything is theoretically impossible, until it is done. ~Robert A. Heinlein
Everything is theoretically impossible, until it is done. ~Robert A. Heinlein
and POOF! You're gone! But look, this tiny ad is still here:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|