blob: 169ea3da0087d8a09f7c41e89e7d85c81f95e32e [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011 Texas Center for Applied Technology
* Texas Engineering Experiment Station
* The Texas A&M University System
* 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:
* Austin Riddle (Texas Center for Applied Technology) - initial api and
* implementation
******************************************************************************/
package org.eclipse.rap.rwt.supplemental.fileupload.event;
/**
* Instances of this class represent an error that has occurred with an upload.
*
* @since 1.4
*/
public class FileUploadException extends RuntimeException {
private static final long serialVersionUID = 1L;
private final String uploadProcessId;
/**
* Creates a new exception that pertains to an upload process.
*
* @param uploadProcessId - the upload process id
* @param nestedException - the nested exception that caused the failure
*/
public FileUploadException( String uploadProcessId, Exception nestedException ) {
super( "Upload with process id: " + uploadProcessId + " failed.", nestedException );
this.uploadProcessId = uploadProcessId;
}
/**
* Returns the upload process id to which this exception pertains.
*
* @return the upload process id
*/
public String getUploadProcessId() {
return uploadProcessId;
}
}