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 );
}
}
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;
}
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;
}
}
}
catch ( AuthorizationException e )
{
- throw new ArchivaSecurityException( e.getMessage() );
+ throw new ArchivaSecurityException( e.getMessage(), e);
}
}
}
catch ( AuthorizationException e )
{
- throw new ArchivaSecurityException( e.getMessage() );
+ throw new ArchivaSecurityException( e.getMessage(), e);
}
}
}
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 )
{
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
}
catch ( RepositoryAdminException e )
{
- throw new RepositoryStorageRuntimeException( "repo-admin", e.getMessage() );
+ throw new RepositoryStorageRuntimeException( "repo-admin", e.getMessage(), e);
}
}
}
catch ( RepositoryAdminException e )
{
- throw new RepositoryStorageRuntimeException( "repo-admin", e.getMessage() );
+ throw new RepositoryStorageRuntimeException( "repo-admin", e.getMessage(), e);
}
}