Loading src/main/java/es/redmic/exception/common/ExceptionType.java +6 −2 Original line number Diff line number Diff line Loading @@ -109,7 +109,9 @@ public enum ExceptionType implements ExceptionTypeItfc { JOB_RUNNING_STEP_NOT_ALLOWED(Constants.JOB_RUNNING_STEP_NOT_ALLOWED), JOB_COMPLETED_STEP_NOT_ALLOWED(Constants.JOB_COMPLETED_STEP_NOT_ALLOWED), REPORT_ERROR(Constants.REPORT_ERROR); REPORT_ERROR(Constants.REPORT_ERROR), NO_CONTENT(Constants.NO_CONTENT); // @formatter:on Loading Loading @@ -244,7 +246,9 @@ public enum ExceptionType implements ExceptionTypeItfc { JOB_RUNNING_STEP_NOT_ALLOWED = "JobRunningStepNotAllowed", JOB_COMPLETED_STEP_NOT_ALLOWED = "JobCompletedStepNotAllowed", REPORT_ERROR = "ReportError"; REPORT_ERROR = "ReportError", NO_CONTENT = "NoContentException"; // @formatter:on } Loading src/main/java/es/redmic/exception/common/NoContentException.java 0 → 100644 +13 −0 Original line number Diff line number Diff line package es.redmic.exception.common; public class NoContentException extends BaseException { /** * */ private static final long serialVersionUID = 1L; public NoContentException() { super(ExceptionType.NO_CONTENT); } } No newline at end of file src/test/java/es/redmic/test/unit/exception/common/NoContentExceptionTest.java 0 → 100644 +17 −0 Original line number Diff line number Diff line package es.redmic.test.unit.exception.common; import java.io.IOException; import org.junit.Test; import es.redmic.exception.common.ExceptionType; import es.redmic.exception.common.NoContentException; public class NoContentExceptionTest extends BaseExceptionTest { @Test public void checkPattern_IsEqualToMessage_WhenNoLocaleSet() throws IOException { checkMessage(new NoContentException(), ExceptionType.NO_CONTENT.toString(), null); } } Loading
src/main/java/es/redmic/exception/common/ExceptionType.java +6 −2 Original line number Diff line number Diff line Loading @@ -109,7 +109,9 @@ public enum ExceptionType implements ExceptionTypeItfc { JOB_RUNNING_STEP_NOT_ALLOWED(Constants.JOB_RUNNING_STEP_NOT_ALLOWED), JOB_COMPLETED_STEP_NOT_ALLOWED(Constants.JOB_COMPLETED_STEP_NOT_ALLOWED), REPORT_ERROR(Constants.REPORT_ERROR); REPORT_ERROR(Constants.REPORT_ERROR), NO_CONTENT(Constants.NO_CONTENT); // @formatter:on Loading Loading @@ -244,7 +246,9 @@ public enum ExceptionType implements ExceptionTypeItfc { JOB_RUNNING_STEP_NOT_ALLOWED = "JobRunningStepNotAllowed", JOB_COMPLETED_STEP_NOT_ALLOWED = "JobCompletedStepNotAllowed", REPORT_ERROR = "ReportError"; REPORT_ERROR = "ReportError", NO_CONTENT = "NoContentException"; // @formatter:on } Loading
src/main/java/es/redmic/exception/common/NoContentException.java 0 → 100644 +13 −0 Original line number Diff line number Diff line package es.redmic.exception.common; public class NoContentException extends BaseException { /** * */ private static final long serialVersionUID = 1L; public NoContentException() { super(ExceptionType.NO_CONTENT); } } No newline at end of file
src/test/java/es/redmic/test/unit/exception/common/NoContentExceptionTest.java 0 → 100644 +17 −0 Original line number Diff line number Diff line package es.redmic.test.unit.exception.common; import java.io.IOException; import org.junit.Test; import es.redmic.exception.common.ExceptionType; import es.redmic.exception.common.NoContentException; public class NoContentExceptionTest extends BaseExceptionTest { @Test public void checkPattern_IsEqualToMessage_WhenNoLocaleSet() throws IOException { checkMessage(new NoContentException(), ExceptionType.NO_CONTENT.toString(), null); } }