servicenotfoundexception.java
来自「java 写的一个新闻发布系统」· Java 代码 · 共 60 行
JAVA
60 行
// $Id: ServiceNotFoundException.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.services;import org.jahia.exceptions.JahiaException;/** * This exception is raised when a specific service instance cannot be found * in the services registry. * * @author Fulco Houkes * @version 1.0 */public class ServiceNotFoundException extends JahiaException{ private String mServiceName; //------------------------------------------------------------------------- /** Default constructor * * @param name * The service name that could not be found. */ public ServiceNotFoundException (String name) { super ("Unavailable service.", "Service [" + name + "] is not avaliable or initialized.", SERVICE_ERROR, CRITICAL); mServiceName = name; } //------------------------------------------------------------------------- /** * Return the service name that could not be found. * * @return * The service name. */ public final String getServiceName () { return mServiceName; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?