jahiatemplatenotfoundexception.java

来自「java 写的一个新闻发布系统」· Java 代码 · 共 91 行

JAVA
91
字号
// $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 + =
减小字号Ctrl + -
显示快捷键?