📄 jahiatemplatenotfoundexception.java
字号:
// $Id: JahiaTemplateNotFoundException.java,v 1.1.1.1 2002/02/07 15:09:15 loom Exp $////// ____.// __/\ ______| |__/\. _______// __ .____| | \ | +----+ \// _______| /--| | | - \ _ | : - \_________// \\______: :---| : : | : | \________>// |__\---\_____________:______: :____|____:_____\// /_____|//// . . . i n j a h i a w e t r u s t . . .//package org.jahia.exceptions;import org.jahia.exceptions.JahiaException;/** * This exception is raised when a page template object is requested and is not * present in the database. * * @author Fulco Houkes * @version 1.1 * * @see JahiaException */public class JahiaTemplateNotFoundException extends JahiaException{ private int mPageTemplateID = -1; private String mPageTemplateName = null; //------------------------------------------------------------------------- /** Default constructor * * @param templateID * The page tempate ID. */ public JahiaTemplateNotFoundException (int templateID) { super ("The page template could not be found", "The page template ["+templateID+"] could not be found", LOCK_ERROR, ERROR); mPageTemplateID = templateID; } //------------------------------------------------------------------------- /** Default constructor * * @param templateName * The page tempalte name. */ public JahiaTemplateNotFoundException (String templateName) { super ("The page template could not be found", "The page template ["+templateName+"] could not be found", LOCK_ERROR, ERROR); mPageTemplateName = templateName; } //------------------------------------------------------------------------- /** Return the page template ID * * @return * Return the page template ID. Return -1 if the template was not * accessed by it's ID. In this case, the method * {@link #getPageTemplateName() getPageTemplateName()} will * return the page template name. */ public final int getPageTemplateID () { return mPageTemplateID; } //------------------------------------------------------------------------- /** Return the page template name. * * @return * Return the page template name. Return null if the template was not * accessed by it's name, in this case the method * {@link #getPageTemplateID() getPageTemplateID()} will return the * page template ID. */ public final String getPageTemplateName () { return mPageTemplateName; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -