mirror of
https://github.com/apache/archiva.git
synced 2025-02-06 10:09:32 +00:00
preserve stack trace
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1427057 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8bfc53c7e6
commit
5fd9dbe55f
@ -705,7 +705,7 @@ public void initialize()
|
||||
catch ( EvaluatorException e )
|
||||
{
|
||||
throw new RuntimeException(
|
||||
"Unable to evaluate expressions found in " + "userConfigFilename or altConfigFilename." );
|
||||
"Unable to evaluate expressions found in " + "userConfigFilename or altConfigFilename.", e);
|
||||
}
|
||||
registry.addChangeListener( this );
|
||||
}
|
||||
|
@ -339,7 +339,7 @@ public Boolean deleteManagedRepository( String repositoryId, AuditInformation au
|
||||
}
|
||||
catch ( Exception e )
|
||||
{
|
||||
throw new RepositoryAdminException( "Error saving configuration for delete action" + e.getMessage() );
|
||||
throw new RepositoryAdminException( "Error saving configuration for delete action" + e.getMessage(), e);
|
||||
}
|
||||
|
||||
return Boolean.TRUE;
|
||||
|
@ -333,15 +333,17 @@ public InputStream retrieve( String name )
|
||||
}
|
||||
catch ( AuthorizationException e )
|
||||
{
|
||||
throw new IOException( e.getMessage() );
|
||||
throw new IOException( e.getMessage(), e );
|
||||
}
|
||||
catch ( TransferFailedException e )
|
||||
{
|
||||
throw new IOException( e.getMessage() );
|
||||
throw new IOException( e.getMessage(), e );
|
||||
}
|
||||
catch ( ResourceDoesNotExistException e )
|
||||
{
|
||||
throw new FileNotFoundException( e.getMessage() );
|
||||
FileNotFoundException fnfe = new FileNotFoundException( e.getMessage() );
|
||||
fnfe.initCause( e );
|
||||
throw fnfe;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -202,7 +202,7 @@ public boolean isAuthorizedToUploadArtifacts( String principal, String repoId )
|
||||
}
|
||||
catch ( AuthorizationException e )
|
||||
{
|
||||
throw new ArchivaSecurityException( e.getMessage() );
|
||||
throw new ArchivaSecurityException( e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
@ -219,7 +219,7 @@ public boolean isAuthorizedToDeleteArtifacts( String principal, String repoId )
|
||||
}
|
||||
catch ( AuthorizationException e )
|
||||
{
|
||||
throw new ArchivaSecurityException( e.getMessage() );
|
||||
throw new ArchivaSecurityException( e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -151,7 +151,7 @@ public AuditEvent( String name, String repositoryId )
|
||||
}
|
||||
catch ( ParseException e )
|
||||
{
|
||||
throw new IllegalArgumentException( "Improperly formatted timestamp for audit log event: " + ts );
|
||||
throw new IllegalArgumentException( "Improperly formatted timestamp for audit log event: " + ts, e);
|
||||
}
|
||||
|
||||
if ( name.length() > TS_LENGTH )
|
||||
|
@ -226,7 +226,7 @@ else if ( VersionUtil.isGenericSnapshot( projectVersion ) )
|
||||
{
|
||||
throw new IllegalArgumentException( "Not a valid artifact path in a Maven 2 repository, filename '" + id
|
||||
+ "' doesn't contain a timestamped version matching snapshot '"
|
||||
+ projectVersion + "'" );
|
||||
+ projectVersion + "'", e);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -378,7 +378,7 @@ public ProjectVersionMetadata readProjectVersionMetadata( ReadMetadataRequest re
|
||||
}
|
||||
catch ( RepositoryAdminException e )
|
||||
{
|
||||
throw new RepositoryStorageRuntimeException( "repo-admin", e.getMessage() );
|
||||
throw new RepositoryStorageRuntimeException( "repo-admin", e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
@ -524,7 +524,7 @@ private File getRepositoryBasedir( String repoId )
|
||||
}
|
||||
catch ( RepositoryAdminException e )
|
||||
{
|
||||
throw new RepositoryStorageRuntimeException( "repo-admin", e.getMessage() );
|
||||
throw new RepositoryStorageRuntimeException( "repo-admin", e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user