1 /*******************************************************************************
2 * Copyright (c) 2010, 2014 Sonatype, Inc.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
9 * Sonatype, Inc. - initial API and implementation
10 *******************************************************************************/
11 package org
.eclipse
.aether
.transfer
;
13 import org
.eclipse
.aether
.RepositoryException
;
16 * Thrown in case an upload/download was cancelled (e.g. due to user request).
18 public class TransferCancelledException
19 extends RepositoryException
23 * Creates a new exception with a stock detail message.
25 public TransferCancelledException()
27 super( "The operation was cancelled." );
31 * Creates a new exception with the specified detail message.
33 * @param message The detail message, may be {@code null}.
35 public TransferCancelledException( String message
)
41 * Creates a new exception with the specified detail message and cause.
43 * @param message The detail message, may be {@code null}.
44 * @param cause The exception that caused this one, may be {@code null}.
46 public TransferCancelledException( String message
, Throwable cause
)
48 super( message
, cause
);