News for hackers. Stuff that matters.
Re:The Modern Java Ecosystem (for the Sinatra or web.py lover) by pacala on Friday December 02, 2011 @01:14PM (#3305004)
I have no idea what the annotations mean, but if we use exceptions for transmitting error conditions, then there is no point having a true | exception function.

    public void deleteStudent(int uid) {
      if (STUDENTS.remove(uid) == null) {
        throw new WebApplicationException(Response.Status.NOT_FOUND);
      }
    }

There are no comments on this comment yet.