Code example for MalformedCookieException

0
            throws MalformedCookieException { 
        if (cookie == null) {
            throw new IllegalArgumentException("Cookie may not be null");
        } 
        if (cookie.getVersion() < 0) {
            throw new MalformedCookieException("Cookie version may not be negative");
        } 
    } 
     
}