org.xerial.snappy.SnappyIOException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of driver-cql-shaded Show documentation
Show all versions of driver-cql-shaded Show documentation
A Shaded CQL ActivityType driver for http://nosqlbench.io/
package org.xerial.snappy;
import java.io.IOException;
/**
* Enhanced IOException with SnappyErrorCode
*/
public class SnappyIOException
extends IOException
{
private final SnappyErrorCode errorCode;
public SnappyIOException(SnappyErrorCode errorCode, String message)
{
super(message);
this.errorCode = errorCode;
}
@Override
public String getMessage()
{
return String.format("[%s] %s", errorCode.name(), super.getMessage());
}
public SnappyErrorCode getErrorCode() { return errorCode; }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy