nonblockingioexception.java

来自「spam source codejasen-0.9jASEN - java An」· Java 代码 · 共 63 行

JAVA
63
字号
/*
 * @(#)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 + =
减小字号Ctrl + -
显示快捷键?