/*
 * @(#)RequestException.java
 *
 * Copyright (c) 2001-2004 JScape
 * 1147 S. 53rd Pl., Mesa, Arizona, 85206, U.S.A.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * JScape. ("Confidential Information").  You shall not disclose such
 * Confidential Information and shall use it only in accordance with
 * the terms of the license agreement you entered into with JScape.
 */
package com.jscape.inet.sftp;

import com.jscape.util.SuppressObfuscation;

/**
 * The SFTP request error. May be thrown while protocol reqest/response
 * exchange if the returned response is not expected or indicates server
 * error.
 *
 * @author Alex Usun
 */
@SuppressObfuscation
public class RequestException
        extends SftpException {

    private int code;

    public RequestException(int code, String message) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return this.code;
    }
}
