FileDocCategorySizeDatePackage
ErrorCodeException.javaAPI DocExample800Fri Aug 13 16:20:00 BST 2004com.oreilly.strutsckbk.ch09

ErrorCodeException.java

package com.oreilly.strutsckbk.ch09;

public class ErrorCodeException extends Exception {
    
    public ErrorCodeException(int code) {
        this.code = code;
    }
    public ErrorCodeException(int code, Object[] args) {
        this.code = code;
        this.args = args;
    }
    public ErrorCodeException(int code, Object[] args, String msg) {
        super(msg);
        this.code = code;
        this.args = args;
    }
    public ErrorCodeException(int code, Object[] args, String msg, Throwable cause) {
        super(msg, cause);
        this.code = code;
        this.args = args;
    }

    public int getCode() {
        return code;
    }

    public Object[] getArgs() {
        return args;
    }
    private Object[] args;
    private int code;
}