IllegalStateException would be more preferable than IOException

XMLWordPrintable

    • b55
    • generic
    • generic



      Name: vpR10197 Date: 05/17/2004


      According to specification, new methods setFiexedLengthStreamingMode(int)
      and setChunkedStreamingMode(int) of HttpURLConnection throw IOException
      if URLConnection is already connected. At the same time most of the
      'set' methods of URLConnection throw IllegalStateException in this case.
      It would be great if setFiexedLengthStreamingMode and setChunkedStreamingMode
      would throw IllegalStateException as well instead of IOException.
      ======================================================================

            Assignee:
            Michael McMahon
            Reporter:
            Vitp Vitp (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: