Skip to contentMethod: IllegalDeviceTypeException(char)
      1: package archive;
2: 
3: /**
4:  * The IllegalDeviceTypeException should be thrown if a file with an invalid type is to be added to
5:  * an archive.
6:  * 
7:  * @author max
8:  *
9:  */
10: public class IllegalDeviceTypeException extends Exception {
11: 
12:         /**
13:          * the begin of the exception message.
14:          */
15:         private static final String PREFIX = "Der Gerätetyp: ";
16: 
17:         /**
18:          * the end of the exception message.
19:          */
20:         private static final String SUFFIX = " wird nicht unterstützt.";
21: 
22:         /**
23:          * Constructor for new IllegalDeviceTypeException.
24:          * 
25:          * @param devtype
26:          *            the illegal devtype
27:          */
28:         public IllegalDeviceTypeException(final char devtype) {
29:                 super(PREFIX + devtype + SUFFIX);
30:         }
31: 
32: }