1 package org.andromda.core.cartridge.template; 2 3 /** 4 * Wraps any unexpected exception when using a Template instance. 5 * 6 * @see org.andromda.core.cartridge.template.Template 7 */ 8 public class TemplateException 9 extends RuntimeException 10 { 11 private static final long serialVersionUID = 34L; 12 /** 13 * Constructs an instance of TemplateException. 14 * 15 * @param parent the parent exception 16 */ 17 public TemplateException(Throwable parent) 18 { 19 super(parent); 20 } 21 22 /** 23 * Constructs an instance of TemplateException. 24 * 25 * @param message the exception message 26 */ 27 public TemplateException(String message) 28 { 29 super(message); 30 } 31 32 /** 33 * Constructs an instance of TemplateException. 34 * 35 * @param message the exception message 36 * @param parent the parent exception 37 */ 38 public TemplateException( 39 String message, 40 Throwable parent) 41 { 42 super(message, parent); 43 } 44 }