Package net.matuschek.http

Examples of net.matuschek.http.HttpException


          // ignore this URL
        }
        // handle other values
      } else if (doc.isNotFound()) {
        // the document was not found
        exceptionHandler.handleException(this, u, new HttpException("Document not found"));
      } else if (doc.isUnauthorized()) {
        // the document was not found
        exceptionHandler.handleException(
          this,
          u,
          new HttpException("No authorization for the document."));
      } else {
        // an other error occured.
        exceptionHandler.handleException(this, u, new HttpException("Unknown document error (Http return code "+doc.getHttpCode()+")."));
      }
    }
  }
View Full Code Here


      doc.setDate(System.currentTimeMillis());
      doc.setURL(url);
     
      return doc;
    } catch (Exception e) {
      throw new HttpException(e.getMessage());
    }
  }
View Full Code Here

TOP

Related Classes of net.matuschek.http.HttpException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.