use of org.molgenis.util.exception.CodedRuntimeException in project molgenis by molgenis.
the class UnknownPermissionQueryParamExceptionTest method testGetMessage.
@Test
void testGetMessage() {
CodedRuntimeException ex = new UnknownPermissionQueryParamException("type");
assertEquals("key:type", ex.getMessage());
}
use of org.molgenis.util.exception.CodedRuntimeException in project molgenis by molgenis.
the class CouldNotUploadAppExceptionTest method testGetMessage.
@Test
void testGetMessage() {
CodedRuntimeException ex = new CouldNotUploadAppException("app.zip");
assertEquals("app.zip", ex.getMessage());
}
use of org.molgenis.util.exception.CodedRuntimeException in project molgenis by molgenis.
the class AggregationExceptionTest method testGetMessageNoDetails.
@Test
void testGetMessageNoDetails() {
CodedRuntimeException ex = new AggregationException(List.of("index1", "index2"), new IOException("IO"));
assertEquals("indices:index1, index2, detailMessage:null", ex.getMessage());
assertEquals("IX01", ex.getErrorCode());
}
use of org.molgenis.util.exception.CodedRuntimeException in project molgenis by molgenis.
the class DocumentDeleteExceptionTest method testGetMessage.
@Test
void testGetMessage() {
CodedRuntimeException ex = new DocumentDeleteException("index", "id", new IOException("error"));
assertEquals("indices:index, id:id", ex.getMessage());
}
use of org.molgenis.util.exception.CodedRuntimeException in project molgenis by molgenis.
the class AggregationTimeoutExceptionTest method testGetMessage.
@Test
void testGetMessage() {
CodedRuntimeException ex = new AggregationTimeoutException(List.of("index1", "index2"), 20000L);
assertEquals("indices:index1, index2, millis:20000", ex.getMessage());
}
Aggregations