
package uk.co.wingpath.io;

import java.io.InterruptedIOException;
import uk.co.wingpath.util.*;

/**
* This is a "helpful" sub-class of InterruptedIOException, which implements the
* {@link Helpful} interface.
*/
public class HInterruptedIOException
    extends InterruptedIOException
    implements Helpful
{
    private final String helpId;

    /**
    * Constructs a <code>ValueException</code> with the specified message
    * and help identifier.
    * @param message the message to be passed in the exception.
    * @param helpId the help identifier to be passed in the exception.
    */
    public HInterruptedIOException (String helpId, String message)
    {
        super (message);
        this.helpId = helpId;
    }

    /**
    * Gets the help identifier.
    * @return the help identifier.
    */
    public String getHelpId ()
    {
        return helpId;
    }
}

