X-Git-Url: http://jaekl.net/gitweb/?p=cfb.git;a=blobdiff_plain;f=prod%2Fnet%2Fjaekl%2Fcfb%2Fstore%2FStoreException.java;fp=prod%2Fnet%2Fjaekl%2Fcfb%2Fstore%2FStoreException.java;h=5c0caf43405f3af851fd70a1cfee21e38d27694a;hp=5b7544df70f54438d346389f60fab7f02e0eb252;hb=a59aa887766f250ba0ad0948c54e1a8d9a590a23;hpb=5ea506df00f2518856a314665d5af11d4581d26d diff --git a/prod/net/jaekl/cfb/store/StoreException.java b/prod/net/jaekl/cfb/store/StoreException.java index 5b7544d..5c0caf4 100644 --- a/prod/net/jaekl/cfb/store/StoreException.java +++ b/prod/net/jaekl/cfb/store/StoreException.java @@ -1,11 +1,29 @@ package net.jaekl.cfb.store; +import java.util.Arrays; + import net.jaekl.cfb.CfbException; public class StoreException extends CfbException { + public enum Type { + UNKNOWN_PATTERN, // bug pattern type is not found in the message collection + UNKNOWN_CATEGORY // bug category is not found in the message collection + } + + private Type m_type; + private String[] m_info; + private static final long serialVersionUID = 1L; - public StoreException(String msg) { - super(msg); + public StoreException(Type type, String... info) { + super(); + + m_type = type; + m_info = info; + } + + @Override + public String toString() { + return "" + getClass().getName() + ": " + m_type + ": " + Arrays.toString(m_info); } }