Search:

Type: Posts; User: ineedahero

Search: Search took 0.10 seconds.

  1. Replies
    13
    Views
    1,241

    Re: Exception handling woes

    While we're here, I figure I'll ask another question that's been on my mind about exception handling.

    My professor mentioned that we should use exception handling in two scenarios (given the...
  2. Replies
    13
    Views
    1,241

    Re: Exception handling woes

    Eh, bit of a typo there. The word "every" shouldn't be in the second sentence.

    How come the edit button doesn't work? I click it and that loading circular icon thing comes up, and nothing ever...
  3. Replies
    13
    Views
    1,241

    Re: Exception handling woes

    Ah, so it looks a little more like this:


    Player player = new Player();
    java.io.FileWriter output = null;

    // receive player info
    ...
  4. Replies
    13
    Views
    1,241

    Re: Exception handling woes

    So every single time I output something to a file I have to check for exception handling? Isn't that a little redundant?

    And can I presume that the same holds for reading from a file?
  5. Replies
    13
    Views
    1,241

    Re: Exception handling woes

    Ok guys, thanks for the help.

    I fixed the errors, but now I'm getting more exception handling problems!


    public Player createNewPlayer(java.io.File file)// throws Exception
    {
    ...
  6. Replies
    13
    Views
    1,241

    Exception handling woes

    Ok, so I'm trying to work with files, and with files come exception handling, and with exception handling comes compilation errors!

    I have part of a function here that is used to retrieve...
Results 1 to 6 of 6