1 15 16 package org.jahia.exceptions; 17 18 19 28 public class JahiaTemplateNotFoundException extends JahiaException 29 { 30 private int mPageTemplateID = -1; 31 private String mPageTemplateName = null; 32 33 39 public JahiaTemplateNotFoundException (int templateID) 40 { 41 super ("The page template could not be found", 42 "The page template ["+templateID+"] could not be found", 43 LOCK_ERROR, ERROR_SEVERITY); 44 45 mPageTemplateID = templateID; 46 } 47 48 54 public JahiaTemplateNotFoundException (String templateName) 55 { 56 super ("The page template could not be found", 57 "The page template ["+templateName+"] could not be found", 58 LOCK_ERROR, ERROR_SEVERITY); 59 60 mPageTemplateName = templateName; 61 } 62 63 64 73 public final int getPageTemplateID () { 74 return mPageTemplateID; 75 } 76 77 86 public final String getPageTemplateName () { 87 return mPageTemplateName; 88 } 89 } 90 | Popular Tags |