Example usage for org.apache.commons.httpclient.util DateParseException getMessage

List of usage examples for org.apache.commons.httpclient.util DateParseException getMessage

Introduction

In this page you can find the example usage for org.apache.commons.httpclient.util DateParseException getMessage.

Prototype

public String getMessage() 

Source Link

Document

Returns the detail message string of this throwable.

Usage

From source file:org.lockss.exporter.ZipExporter.java

private long dateAsLong(String datestr) {
    try {// w  ww.  j  av  a  2s . c o m
        return DateUtil.parseDate(datestr).getTime();
    } catch (org.apache.commons.httpclient.util.DateParseException e) {
        log.warning("Error parsing response header: " + datestr + ": " + e.getMessage());
        return -1;
    }
}