]> git.argeo.org Git - gpl/argeo-jcr.git/blob - TransferCancelledException.java
5f4ed5b6da349fae3d9a302dccd414683f954795
[gpl/argeo-jcr.git] / TransferCancelledException.java
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
7 *
8 * Contributors:
9 * Sonatype, Inc. - initial API and implementation
10 *******************************************************************************/
11 package org.eclipse.aether.transfer;
12
13 import org.eclipse.aether.RepositoryException;
14
15 /**
16 * Thrown in case an upload/download was cancelled (e.g. due to user request).
17 */
18 public class TransferCancelledException
19 extends RepositoryException
20 {
21
22 /**
23 * Creates a new exception with a stock detail message.
24 */
25 public TransferCancelledException()
26 {
27 super( "The operation was cancelled." );
28 }
29
30 /**
31 * Creates a new exception with the specified detail message.
32 *
33 * @param message The detail message, may be {@code null}.
34 */
35 public TransferCancelledException( String message )
36 {
37 super( message );
38 }
39
40 /**
41 * Creates a new exception with the specified detail message and cause.
42 *
43 * @param message The detail message, may be {@code null}.
44 * @param cause The exception that caused this one, may be {@code null}.
45 */
46 public TransferCancelledException( String message, Throwable cause )
47 {
48 super( message, cause );
49 }
50
51 }