⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jahiapagenotfoundexception.java

📁 java 写的一个新闻发布系统
💻 JAVA
字号:
// $Id: JahiaPageNotFoundException.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 object is requested and is not * present in the database. * * @author  Fulco Houkes * @version 1.0 */public class JahiaPageNotFoundException extends JahiaException{    private int mPageID;    //-------------------------------------------------------------------------    /** Default constructor     *     * @param   pageID  The not-found requested page ID.     */    public JahiaPageNotFoundException (int pageID)    {        super ("404 Not found - Page:" + pageID,               "404 error - page ["+pageID+"] could not be found in the database.",               PAGE_ERROR, ERROR);        mPageID = pageID;    }    //-------------------------------------------------------------------------    /** Constructor     *     * @param   pageIDStr  The not-found requested page ID string.     */    public JahiaPageNotFoundException (String pageIDStr)    {        super ("404 Not found - Page:" + pageIDStr,               "404 error - page ["+pageIDStr+"] could not be found in the database.",               PAGE_ERROR, ERROR);        try {            mPageID = Integer.parseInt (pageIDStr);        }        catch (NumberFormatException ex) {            mPageID = -1;        }    }    //-------------------------------------------------------------------------    /** Return the ID of the not found page.     */    public final int getPageID () {        return mPageID;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -