serviceexception.java

来自「该源码包括了基于J2EE的数据持久层设计,设计中使用了DAO,Service,等」· Java 代码 · 共 60 行

JAVA
60
字号
package org.conference.datapersistence.Service;


/**
 * <p><strong>SerializationException</strong>,
 * Exception thrown when the Serialization process fails.</p>
 *
 * <p>The original error is wrapped within this one.</p>
 *
 */
public class ServiceException
    extends Exception {

  /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

/**
   * <p>Constructs a new <code>SerializationException</code> without specified
   * detail message.</p>
   */
  public ServiceException() {
    super();
  }

  /**
   * <p>Constructs a new <code>SerializationException</code> with specified
   * detail message.</p>
   *
   * @param msg  The error message.
   */
  public ServiceException(String msg) {
    super(msg);
  }

  /**
   * <p>Constructs a new <code>SerializationException</code> with specified
   * nested <code>Throwable</code>.</p>
   *
   * @param cause  The <code>Exception</code> or <code>Error</code>
   *  that caused this exception to be thrown.
   */
  public ServiceException(Throwable cause) {
    super(cause);
  }

  /**
   * <p>Constructs a new <code>SerializationException</code> with specified
   * detail message and nested <code>Throwable</code>.</p>
   *
   * @param msg    The error message.
   * @param cause  The <code>Exception</code> or <code>Error</code>
   *  that caused this exception to be thrown.
   */
  public ServiceException(String msg, Throwable cause) {
    super(msg, cause);
  }

}

⌨️ 快捷键说明

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