Results 1 to 2 of 2
Thread: Java return line of the error
- 01-13-2012, 06:37 PM #1
Member
- Join Date
- Dec 2011
- Posts
- 16
- Rep Power
- 0
Java return line of the error
Hi all,
Iam trieing to print an error with a linenumber where the error is at.
Here is a part of my code.
What i would like to show at i is the linenumber where the error is.Java Code:if (turns.isEmpty()) { throw new FileException("\r\nTurn <" + turns + "> contains zero darts" , i , file, turns); }
turns is filled by inserting a fileJava Code:while((turns = reader.readLine()) != null)
- 01-13-2012, 06:48 PM #2
Similar Threads
-
Return a value from Method - error
By rgeurts in forum New To JavaReplies: 5Last Post: 03-28-2011, 09:04 PM -
Return statement error
By Exothesis in forum New To JavaReplies: 2Last Post: 10-13-2010, 01:56 AM -
> Operator cannot be applied error and return incompatible types error
By corney_16 in forum New To JavaReplies: 1Last Post: 03-10-2010, 01:53 PM -
How to return to next line of code after calling a public class?
By devdevi@comcast.net in forum New To JavaReplies: 1Last Post: 02-02-2009, 06:46 PM -
New line or Carriage Return through FileWriter
By johnt in forum New To JavaReplies: 2Last Post: 05-20-2007, 09:13 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks