You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by ma...@apache.org on 2020/02/17 21:20:59 UTC
[archiva] 02/05: Changing contentaccessexception to runtime
exception
This is an automated email from the ASF dual-hosted git repository.
martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva.git
commit c6a0e092383d85332da1c2aac07134604214f00c
Author: Martin Stockhammer <ma...@apache.org>
AuthorDate: Mon Feb 17 22:17:29 2020 +0100
Changing contentaccessexception to runtime exception
---
.../archiva/repository/ContentAccessException.java | 6 ++++-
...eption.java => RepositoryRuntimeException.java} | 30 +++++++++++-----------
2 files changed, 20 insertions(+), 16 deletions(-)
diff --git a/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/ContentAccessException.java b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/ContentAccessException.java
index d25c260..cac4365 100644
--- a/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/ContentAccessException.java
+++ b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/ContentAccessException.java
@@ -19,15 +19,19 @@ package org.apache.archiva.repository;
* under the License.
*/
+import java.util.List;
+
/**
* This exception is thrown, during errors while accessing the repository data
* E.g. the cause may be IO errors while accessing the filesystem, permission problems
* on the filesystem or other backend related problems.
*/
-public class ContentAccessException extends RepositoryException
+public class ContentAccessException extends RepositoryRuntimeException
{
private static final long serialVersionUID = 3811491193671356230L;
+ List<Exception> errorList;
+
public ContentAccessException( )
{
}
diff --git a/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/ContentAccessException.java b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/RepositoryRuntimeException.java
similarity index 60%
copy from archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/ContentAccessException.java
copy to archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/RepositoryRuntimeException.java
index d25c260..0f753ae 100644
--- a/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/ContentAccessException.java
+++ b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/RepositoryRuntimeException.java
@@ -1,5 +1,3 @@
-package org.apache.archiva.repository;
-
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
@@ -9,8 +7,7 @@ package org.apache.archiva.repository;
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
- *
+ * http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -19,31 +16,34 @@ package org.apache.archiva.repository;
* under the License.
*/
+package org.apache.archiva.repository;
+
/**
- * This exception is thrown, during errors while accessing the repository data
- * E.g. the cause may be IO errors while accessing the filesystem, permission problems
- * on the filesystem or other backend related problems.
+ * @author Martin Stockhammer <ma...@apache.org>
*/
-public class ContentAccessException extends RepositoryException
+public class RepositoryRuntimeException extends RuntimeException
{
- private static final long serialVersionUID = 3811491193671356230L;
+ public RepositoryRuntimeException( )
+ {
+ }
- public ContentAccessException( )
+ public RepositoryRuntimeException( String message )
{
+ super( message );
}
- public ContentAccessException( String message, Throwable cause )
+ public RepositoryRuntimeException( String message, Throwable cause )
{
super( message, cause );
}
- public ContentAccessException( String message )
+ public RepositoryRuntimeException( Throwable cause )
{
- super( message );
+ super( cause );
}
- public ContentAccessException( Throwable cause )
+ public RepositoryRuntimeException( String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace )
{
- super( cause );
+ super( message, cause, enableSuppression, writableStackTrace );
}
}