projects
/
cfb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add further unit tests.
[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 5c0caf43405f3af851fd70a1cfee21e38d27694a..b7d75816450814da88747a968314aa76e3dd4162 100644
(file)
--- a/
prod/net/jaekl/cfb/store/StoreException.java
+++ b/
prod/net/jaekl/cfb/store/StoreException.java
@@
-7,7
+7,8
@@
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
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
+ UNKNOWN_CATEGORY, // bug category is not found in the message collection
+ INVALID_LOC_ID // the specified location ID is not found in the database
}
private Type m_type;
}
private Type m_type;
@@
-22,6
+23,15
@@
public class StoreException extends CfbException {
m_info = info;
}
m_info = info;
}
+ public StoreException(Throwable cause, Type type, String... info) {
+ super(cause);
+
+ m_type = type;
+ m_info = info;
+ }
+
+ public Type getType() { return m_type; }
+
@Override
public String toString() {
return "" + getClass().getName() + ": " + m_type + ": " + Arrays.toString(m_info);
@Override
public String toString() {
return "" + getClass().getName() + ": " + m_type + ": " + Arrays.toString(m_info);