Skip to contentMethod: NotSameAttributeException(String)
      1: package de.fhdw.wtf.generator.database.exception;
2: 
3: /**
4:  * This exception is thrown when 2 associations dont have the same attribute or when one type is not a super type of a
5:  * other type.
6:  */
7: public class NotSameAttributeException extends GenerationException {
8:         
9:         /**
10:          * message of the exception.
11:          */
12:         private static final String NOT_SAME_NAME_MESSAGE =
13:                         "Prerequisite error: All elements must have the same attribute: ";
14:         
15:         /**
16:          * 
17:          */
18:         private static final long serialVersionUID = 1L;
19:         
20:         /**
21:          * This exception is thrown when 2 associations dont have the same attribute or when one type is not a super type of
22:          * a other type.
23:          * 
24:          * @param attributeName
25:          *            name of the attribute
26:          */
27:         public NotSameAttributeException(final String attributeName) {
28:                 super(NOT_SAME_NAME_MESSAGE + attributeName);
29:         }
30: }