package nya.miku.wishmaster.lib.gifdrawable;
import java.io.IOException;
/**
* Exception encapsulating {@link GifError}s.
*
* @author koral--
*/
public class GifIOException extends IOException {
private static final long serialVersionUID = 13038402904505L;
/**
* Reason which caused an exception
*/
public final GifError reason;
private GifIOException(GifError reason) {
super(reason.getFormattedDescription());
this.reason = reason;
}
//@SuppressWarnings("UnusedDeclaration")
//invoked from native code
GifIOException(int errorCode) {
this(GifError.fromCode(errorCode));
}
}