Avoid unit test failures when cfb.properties is not found in the classpath.
[cfb.git] / prod / net / jaekl / cfb / store / StoreException.java
1 package net.jaekl.cfb.store;
2
3 import java.util.Arrays;
4
5 import net.jaekl.cfb.CfbException;
6
7 public class StoreException extends CfbException {
8         public enum Type {
9                 UNKNOWN_PATTERN,        // bug pattern type is not found in the message collection 
10                 UNKNOWN_CATEGORY        // bug category is not found in the message collection
11         }
12         
13         private Type m_type;
14         private String[] m_info;
15         
16         private static final long serialVersionUID = 1L;
17         
18         public StoreException(Type type, String... info) {
19                 super();
20                 
21                 m_type = type;
22                 m_info = info;
23         }
24         
25         @Override
26         public String toString() {
27                 return "" + getClass().getName() + ": " + m_type + ": " + Arrays.toString(m_info);
28         }
29 }