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