All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ning.api.client.exception.NingTimeoutException Maven / Gradle / Ivy

There is a newer version: 0.5.1
Show newest version
package com.ning.api.client.exception;

import java.util.concurrent.TimeoutException;

import com.ning.api.client.NingClientException;

public class NingTimeoutException extends NingClientException
{
    private static final long serialVersionUID = 1L;

    protected final long timeoutMsecs;
    
    public NingTimeoutException(TimeoutException e, long timeoutMsecs)
    {
        super("Timed out after "+timeoutMsecs+" msecs: "+e.getMessage(), e);
        this.timeoutMsecs = timeoutMsecs;
    }

    public long getTimeoutMsecs() { return timeoutMsecs; }
    
    /**
     * Regular timeouts are generally retryable, so always returns true
     */
    @Override
    public boolean isRetryable() {
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy