IncomingFileTransferException.java :  » IDE-Eclipse » All-Other-packages » org » eclipse » ecf » filetransfer » Java Open Source

Java Open Source » IDE Eclipse » All Other packages 
All Other packages » org » eclipse » ecf » filetransfer » IncomingFileTransferException.java
/*******************************************************************************
 * Copyright (c) 2004 Composent, Inc. All rights reserved. This
 * program and the accompanying materials are made available under the terms of
 * the Eclipse Public License v1.0 which accompanies this distribution, and is
 * available at http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors: Composent, Inc. - initial API and implementation
 ******************************************************************************/
package org.eclipse.ecf.filetransfer;

import org.eclipse.core.runtime.IStatus;
import org.eclipse.ecf.core.util.ECFException;

/**
 * Exception thrown upon incoming file transfer problem
 * 
 */
public class IncomingFileTransferException extends ECFException {

  private static final long serialVersionUID = 2438441801862623371L;

  private int errorCode = -1;

  public IncomingFileTransferException(IStatus status) {
    super(status);
  }

  public IncomingFileTransferException() {
    // null constructor
  }

  public IncomingFileTransferException(int errorCode) {
    this();
    this.errorCode = errorCode;
  }

  public IncomingFileTransferException(String message) {
    super(message);
  }

  public IncomingFileTransferException(String message, int errorCode) {
    super(message);
    this.errorCode = errorCode;
  }

  public IncomingFileTransferException(Throwable cause) {
    super(cause);
  }

  public IncomingFileTransferException(Throwable cause, int errorCode) {
    super(cause);
    this.errorCode = errorCode;
  }

  public IncomingFileTransferException(String message, Throwable cause) {
    super(message, cause);
  }

  public IncomingFileTransferException(String message, Throwable cause, int errorCode) {
    super(message, cause);
    this.errorCode = errorCode;
  }

  public int getErrorCode() {
    return errorCode;
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.