serviceunavailableexception.java

来自「Jboss s J2EE Sample」· Java 代码 · 共 81 行

JAVA
81
字号
/** JBoss, the OpenSource J2EE webOS** Distributable under LGPL license.* See terms of license at gnu.org.*/package test.interfaces;/** * Indicates a problem with a unavailable service. Because * this is not a Runtime or Remote Exception it will NOT * cause the transaction to roll back. * * @author Andreas Schaefer * @version $Revision: 1.1 $ **/public class ServiceUnavailableException   extends Exception{      // -------------------------------------------------------------------------   // Static   // -------------------------------------------------------------------------	    // -------------------------------------------------------------------------   // Members    // -------------------------------------------------------------------------     // -------------------------------------------------------------------------   // Constructor   // -------------------------------------------------------------------------	    /**    * Constructor with a message of the exception    *    * @param pMessage Message to further explain the exception    **/   public ServiceUnavailableException( String pMessage )   {      super( pMessage );   }   // -------------------------------------------------------------------------   // Methods   // -------------------------------------------------------------------------     /**    * Describes the instance and its content for debugging purpose    *    * @return Using the one from the super class    **/   public String toString()   {      return super.toString();   }   /**    * Determines if the given instance is the same as this instance    * based on its content. This means that it has to be of the same    * class ( or subclass ) and it has to have the same content    *    * @return Returns the equals value from the super class    **/   public boolean equals( Object pTest )   {      return super.equals( pTest );   }   /**    * Returns the hashcode of this instance    *    * @return Hashcode of the super class    **/   public int hashCode()   {      return super.hashCode();   }}

⌨️ 快捷键说明

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