jahiaoperationnotallowedexception.java
来自「java 写的一个新闻发布系统」· Java 代码 · 共 57 行
JAVA
57 行
// $Id: JahiaOperationNotAllowedException.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 an operation is not allowed. * i.e. delete the current page * * @author Yann Gentil * @version 1.0 */public class JahiaOperationNotAllowedException extends JahiaException{ private int mPageID; private String mMessage; //------------------------------------------------------------------------- /** Default constructor * * @param pageID The page ID. * @param mess The exception message. */ public JahiaOperationNotAllowedException (int pageID, String mess) { super ("Operation Not allowed [Page:" + pageID+"] - "+ mess, mess, PAGE_ERROR, ERROR); mPageID = pageID; } //------------------------------------------------------------------------- /** Return the ID of the page. */ public final int getPageID () { return mPageID; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?