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

📄 nonblockingioexception.java

📁 spam source codejasen-0.9jASEN - java Anti Spam ENgine.zip 如标题所示
💻 JAVA
字号:
/*
 * @(#)NonBlockingIOException.java	14/12/2004
 *
 * Copyright 2003, 2004 EveryMail Pty Ltd. All rights reserved.
 * Use is subject to license terms.
 */
package org.jasen.io;

import java.io.IOException;

/**
 * <P>
 * 	Extended IOException to indicate timeout errors.
 * </P>
 * @author Jason Polites
 */
public class NonBlockingIOException extends IOException
{
    public static final int TIMEOUT = 0;
    public static final int INVALID_BUFFER = 1;
    
    private int code;
    
    /**
     * 
     */
    public NonBlockingIOException() {
        super ();
    }

    /**
     * @param s
     */
    public NonBlockingIOException(String s) {
        super (s);
    }

    
    /**
     * 
     */
    public NonBlockingIOException(int code) {
        super ();
        this.code = code;
    }

    /**
     * @param s
     */
    public NonBlockingIOException(String s, int code) {
        super (s);
        this.code = code;
    }    
    
    /**
     * Gets the code that caused the exception
     * @return The exception code
     */
    public int getCode() {
        return code;
    }
}

⌨️ 快捷键说明

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