From 8d4941ef21bf2666ebea02eff311b736e9ec768e Mon Sep 17 00:00:00 2001 From: "manuele.simi" Date: Wed, 10 Jan 2018 03:09:32 +0000 Subject: [PATCH] Rename CodeException to LocalCodeException. git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/resource-management/resource-manager@162025 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../{CodeException.java => LocalCodeException.java} | 4 ++-- .../manager/io/exceptions/LocalCodeExceptionTest.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename io/src/main/java/org/gcube/resourcemanagement/manager/io/exceptions/{CodeException.java => LocalCodeException.java} (79%) diff --git a/io/src/main/java/org/gcube/resourcemanagement/manager/io/exceptions/CodeException.java b/io/src/main/java/org/gcube/resourcemanagement/manager/io/exceptions/LocalCodeException.java similarity index 79% rename from io/src/main/java/org/gcube/resourcemanagement/manager/io/exceptions/CodeException.java rename to io/src/main/java/org/gcube/resourcemanagement/manager/io/exceptions/LocalCodeException.java index 53cf2d7..979ce81 100644 --- a/io/src/main/java/org/gcube/resourcemanagement/manager/io/exceptions/CodeException.java +++ b/io/src/main/java/org/gcube/resourcemanagement/manager/io/exceptions/LocalCodeException.java @@ -7,13 +7,13 @@ package org.gcube.resourcemanagement.manager.io.exceptions; * @author Manuele Simi (ISTI CNR) * */ -public class CodeException extends Exception implements ErrorCode { +public class LocalCodeException extends Exception implements ErrorCode { private static final long serialVersionUID = 1872093579811881630L; private final int id; private final String message; - public CodeException(ErrorCode code) { + public LocalCodeException(ErrorCode code) { super(); this.id = code.getId(); this.message = code.getMessage(); diff --git a/io/src/test/java/org/gcube/resourcemanagement/manager/io/exceptions/LocalCodeExceptionTest.java b/io/src/test/java/org/gcube/resourcemanagement/manager/io/exceptions/LocalCodeExceptionTest.java index 4720e9c..d4c457a 100644 --- a/io/src/test/java/org/gcube/resourcemanagement/manager/io/exceptions/LocalCodeExceptionTest.java +++ b/io/src/test/java/org/gcube/resourcemanagement/manager/io/exceptions/LocalCodeExceptionTest.java @@ -17,11 +17,11 @@ import org.junit.Test; public class LocalCodeExceptionTest { /** - * Test method for {@link org.gcube.resourcemanagement.manager.io.exceptions.CodeException#CodeException(org.gcube.resourcemanagement.manager.io.exceptions.ErrorCode)}. + * Test method for {@link org.gcube.resourcemanagement.manager.io.exceptions.LocalCodeException#CodeException(org.gcube.resourcemanagement.manager.io.exceptions.ErrorCode)}. */ @Test public void testCodeException() { - CodeException exception = new CodeException(RMCode.GENERIC_ERROR_FROM_RR); + LocalCodeException exception = new LocalCodeException(RMCode.GENERIC_ERROR_FROM_RR); assertTrue("Unexpected id", exception.getId() == RMCode.GENERIC_ERROR_FROM_RR.getId()); }