Back to project page dandy.
The source code is released under:
GNU General Public License
If you think the Android project dandy listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.workhabit.drupal.api.site.exceptions; //www. j av a 2s . c o m import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Copyright 2009 - WorkHabit, Inc. - acs * Date: 2/15/11, 2:42 PM */ public class DrupalServicesResponseException extends Exception { private static final Logger log = LoggerFactory.getLogger(DrupalServicesResponseException.class); @SuppressWarnings({"CanBeFinal"}) private int statusCode; private final String reasonPhrase; public DrupalServicesResponseException(int statusCode, String reasonPhrase) { this.statusCode = statusCode; this.reasonPhrase = reasonPhrase; log.error(getMessage()); } public int getStatusCode() { return statusCode; } public String getReasonPhrase() { return reasonPhrase; } @Override public String getMessage() { return statusCode + ": " + reasonPhrase; } }