This repository has been archived by the owner on Aug 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NXCM-4852: Client drops connection during upload.
Introduced new LS exception that denotes EOF situation. Most likely we really need to get rid of StorageException altogether.
- Loading branch information
Showing
3 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
nexus/nexus-api/src/main/java/org/sonatype/nexus/proxy/LocalStorageEofException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Sonatype Nexus (TM) Open Source Version | ||
* Copyright (c) 2007-2012 Sonatype, Inc. | ||
* All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions. | ||
* | ||
* This program and the accompanying materials are made available under the terms of the Eclipse Public License Version 1.0, | ||
* which accompanies this distribution and is available at http://www.eclipse.org/legal/epl-v10.html. | ||
* | ||
* Sonatype Nexus (TM) Professional Version is available from Sonatype, Inc. "Sonatype" and "Sonatype Nexus" are trademarks | ||
* of Sonatype, Inc. Apache Maven is a trademark of the Apache Software Foundation. M2eclipse is a trademark of the | ||
* Eclipse Foundation. All other trademarks are the property of their respective owners. | ||
*/ | ||
package org.sonatype.nexus.proxy; | ||
|
||
/** | ||
* Local storage exception thrown by local storage when stream/content being pushed (stored) ends prematurely (EOFs). | ||
* Denotes an unrecoverable state, but is not resolvable by Nexus core (happens when client drops connection | ||
* during upload, recovery is to have client retry upload). | ||
* | ||
* @author cstamas | ||
* @since 2.3 | ||
*/ | ||
public class LocalStorageEofException | ||
extends LocalStorageException | ||
{ | ||
public LocalStorageEofException( String msg ) | ||
{ | ||
super( msg ); | ||
} | ||
|
||
public LocalStorageEofException( String msg, Throwable cause ) | ||
{ | ||
super( msg, cause ); | ||
} | ||
|
||
public LocalStorageEofException( Throwable cause ) | ||
{ | ||
super( cause.getMessage(), cause ); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters