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:
parent
3b4e4b17a8
commit
8d4941ef21
|
@ -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();
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue