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

Alachisoft.NCache.Common.Exceptions.TimeoutException Maven / Gradle / Ivy

package Alachisoft.NCache.Common.Exceptions;

import com.alachisoft.ncache.runtime.exceptions.CacheException;

import java.io.Serializable;

// $Id: TimeoutException.java,v 1.1.1.1 2003/09/09 01:24:08 belaban Exp $
public class TimeoutException extends CacheException implements Serializable {

    public java.util.List failed_mbrs = null; // members that failed responding

    public TimeoutException() {
        super("TimeoutExeption");
    }

    public TimeoutException(String msg) {
        super(msg);
    }

    public TimeoutException(java.util.List failed_mbrs) {
        super("TimeoutExeption");
        this.failed_mbrs = failed_mbrs;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();

        sb.append(super.toString());

        if (failed_mbrs != null && failed_mbrs.size() > 0) {
            sb.append(" (failed members: ").append(failed_mbrs);
        }
        return sb.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy