⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 notfoundexception.java

📁 Xfire文件 用于开发web service 的一个开源工具 很好用的
💻 JAVA
字号:
package org.codehaus.xfire.aegis.inheritance.ws2.common.exception;

/**
 * <br/>
 * 
 * @author xfournet
 */
public class NotFoundException
    extends Exception
{
    private String m_id;

    public NotFoundException()
    {
    }

    public NotFoundException(String id)
    {
        m_id = id;
    }

    public String getId()
    {
        return m_id;
    }

    public void setId(String id)
    {
        m_id = id;
    }

    public String toString()
    {
        return "[" + getClass().getName() + "] id=" + m_id;
    }

    public boolean equals(Object o)
    {
        if (this == o)
        {
            return true;
        }
        if (o == null || getClass() != o.getClass())
        {
            return false;
        }

        final NotFoundException that = (NotFoundException) o;

        if (getMessage() != null ? !getMessage().equals(that.getMessage())
                : that.getMessage() != null)
        {
            return false;
        }

        if (m_id != null ? !m_id.equals(that.m_id) : that.m_id != null)
        {
            return false;
        }

        return true;
    }

    public int hashCode()
    {
        return (m_id != null ? m_id.hashCode() : 0);
    }
}

⌨️ 快捷键说明

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