Code example for MalformedCookieException

0
            throw new MalformedCookieException("Missing value for expires attribute");
        } 
        try { 
            cookie.setExpiryDate(DateUtils.parseDate(value, this.datepatterns));
        } catch (DateParseException dpe) {
            throw new MalformedCookieException("Unable to parse expires attribute: " 
                + value);
        } 
    } 
 
} 
Connect your IDE to all the code out there  Get Codota for Java