projects
/
cfb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid unit test failures when cfb.properties is not found in the classpath.
[cfb.git]
/
prod
/
net
/
jaekl
/
cfb
/
store
/
StoreException.java
diff --git
a/prod/net/jaekl/cfb/store/StoreException.java
b/prod/net/jaekl/cfb/store/StoreException.java
index 5b7544df70f54438d346389f60fab7f02e0eb252..5c0caf43405f3af851fd70a1cfee21e38d27694a 100644
(file)
--- 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;
package net.jaekl.cfb.store;
+import java.util.Arrays;
+
import net.jaekl.cfb.CfbException;
public class StoreException extends CfbException {
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;
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);
}
}
}
}