📄 serviceexception.java
字号:
/* @LICENSE_COPYRIGHT@ */package net.sf.irunninglog.service;/** * Generic exception to be thrown when something goes wrong related to * execution of a service. This subclass of <code>java.lang.Exception</code> * may be subclassed into more specific exceptions, used as a wrapper for * other exceptions, or thrown on its own. * *<p/> * * Typically, this exception would appear in the signature of any methods * declared in an interface that subclasses <code>IService</code>, as any * business method in one of these interfaces could potentially throw this * exception. * * @author <a href="mailto:allan_e_lewis@yahoo.com">Allan Lewis</a> * @version $Revision: 1.1.1.1 $ $Date: 2005/06/23 01:48:57 $ * @since iRunningLog 1.0 * @see IService */public class ServiceException extends Exception { /** * Create a new exception with no cause and no detail message. */ public ServiceException() { super(); } /** * Create a new exception with the specified detail message. * * @param message The detail message for the exception */ public ServiceException(String message) { super(message); } /** * Create a new exception with the specified cause. * * @param cause The exception that caused this exception */ public ServiceException(Throwable cause) { super(cause); } /** * Create a new exception with the specified detail message and cause. * * @param message The detail message for the exception * @param cause The exception that caused this exception */ public ServiceException(String message, Throwable cause) { super(message, cause); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -