Java tutorial
/** * Mule Constant Contact Connector * * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com * * The software in this package is published under the terms of the CPAL v1.0 * license, a copy of which has been included with this distribution in the * LICENSE.txt file. */ package org.mule.modules.constantcontact; import org.apache.http.client.methods.HttpRequestBase; public class ConstantContactException extends Exception { public ConstantContactException(Exception e) { super(e); } public ConstantContactException(String message, int httpStatus, String response) { super(message + ". Http Status = " + httpStatus + ". Response from server = " + response); } public ConstantContactException(String message, HttpRequestBase request, RequestExecutor.Response response) { super(message + ". Http Status = " + response.getHttpStatusCode() + ". Requested URI = " + request.getURI() + ". Method = " + request.getMethod() + ". Response from server = " + response.getResponseText()); } public ConstantContactException(String message, Exception e) { super(message, e); } public ConstantContactException(String s) { super(s); } }