package anastore.store;

/**
 * An exception that is thrown to indicate that the requested datum or
 * version does not exist.
 */
public class NoSuchDatum extends RuntimeException
{
    public NoSuchDatum(long id)
    {
        super(Long.toString(id));
    }

    public NoSuchDatum(long id, long timestamp)
    {
        super(id + "@" + timestamp);
    }

    public NoSuchDatum(long id, String message)
    {
        super(id + ": " + message);
    }

    public NoSuchDatum(long id, long timestamp, String message)
    {
        super(id + "@" + timestamp + ": " + message);
    }
}
