KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > nutch > protocol > http > HttpError


1 /* Copyright (c) 2003 The Nutch Organization. All rights reserved. */
2 /* Use subject to the conditions in http://www.nutch.org/LICENSE.txt. */
3
4 package net.nutch.protocol.http;
5
6 /** Thrown for HTTP error codes.
7  */

8 public class HttpError extends HttpException {
9
10   private int code;
11   
12   public int getCode(int code) { return code; }
13
14   public HttpError(int code) {
15     super("HTTP Error: " + code);
16     this.code = code;
17   }
18
19 }
20
Popular Tags