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);
}
}