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
This commit is contained in:
Manuele Simi 2018-01-10 03:09:32 +00:00
parent 3b4e4b17a8
commit 8d4941ef21
2 changed files with 4 additions and 4 deletions

View File

@ -7,13 +7,13 @@ package org.gcube.resourcemanagement.manager.io.exceptions;
* @author Manuele Simi (ISTI CNR) * @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 static final long serialVersionUID = 1872093579811881630L;
private final int id; private final int id;
private final String message; private final String message;
public CodeException(ErrorCode code) { public LocalCodeException(ErrorCode code) {
super(); super();
this.id = code.getId(); this.id = code.getId();
this.message = code.getMessage(); this.message = code.getMessage();

View File

@ -17,11 +17,11 @@ import org.junit.Test;
public class LocalCodeExceptionTest { 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 @Test
public void testCodeException() { 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()); assertTrue("Unexpected id", exception.getId() == RMCode.GENERIC_ERROR_FROM_RR.getId());
} }