All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.baidu.jprotobuf.pbrpc.ErrorDataException Maven / Gradle / Ivy

/*
 * Copyright 2002-2014 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.baidu.jprotobuf.pbrpc;

import com.baidu.jprotobuf.pbrpc.data.RpcDataPackage;

/**
 * 
 * Error data exception.
 *
 * @author xiemalin
 * @since 1.4
 */
public class ErrorDataException extends Exception {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = -9052741930614009382L;
    
    private RpcDataPackage rpcDataPackage;
    private int errorCode;
    
    /**
     * get the errorCode
     * @return the errorCode
     */
    public int getErrorCode() {
        return errorCode;
    }

    /**
     * set errorCode value to errorCode
     * @param errorCode the errorCode to set
     */
    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    /**
     * get the rpcDataPackage
     * @return the rpcDataPackage
     */
    public RpcDataPackage getRpcDataPackage() {
        return rpcDataPackage;
    }

    /**
     * set rpcDataPackage value to rpcDataPackage
     * @param rpcDataPackage the rpcDataPackage to set
     */
    public void setRpcDataPackage(RpcDataPackage rpcDataPackage) {
        this.rpcDataPackage = rpcDataPackage;
    }

    /**
     * 
     */
    public ErrorDataException() {
        super();
    }

    /**
     * @param message
     * @param cause
     */
    public ErrorDataException(String message, Throwable cause) {
        super(message, cause);
    }
    
    /**
     * @param message
     * @param cause
     */
    public ErrorDataException(String message, Throwable cause, int errorCode) {
        super(message, cause);
        this.errorCode = errorCode;
    }

    /**
     * @param message
     */
    public ErrorDataException(String message) {
        super(message);
    }

    /**
     * @param message
     */
    public ErrorDataException(String message, int errorCode) {
        super(message);
        this.errorCode = errorCode;
    }
    
    /**
     * @param cause
     */
    public ErrorDataException(Throwable cause) {
        super(cause);
    }
    
    /**
     * @param cause
     */
    public ErrorDataException(Throwable cause, int errorCode) {
        super(cause);
        this.errorCode = errorCode;
    }

    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy