|
|
@ -107,8 +107,10 @@ public class WebsiteResource { |
|
|
|
try { |
|
|
|
try { |
|
|
|
arbitraryDataWriter.save(); |
|
|
|
arbitraryDataWriter.save(); |
|
|
|
} catch (IOException | DataException e) { |
|
|
|
} catch (IOException | DataException e) { |
|
|
|
|
|
|
|
LOGGER.info("Unable to create arbitrary data file: {}", e.getMessage()); |
|
|
|
throw ApiExceptionFactory.INSTANCE.createException(request, ApiError.REPOSITORY_ISSUE); |
|
|
|
throw ApiExceptionFactory.INSTANCE.createException(request, ApiError.REPOSITORY_ISSUE); |
|
|
|
} catch (IllegalStateException e) { |
|
|
|
} catch (IllegalStateException e) { |
|
|
|
|
|
|
|
LOGGER.info("Unable to create arbitrary data file: {}", e.getMessage()); |
|
|
|
throw ApiExceptionFactory.INSTANCE.createException(request, ApiError.INVALID_DATA); |
|
|
|
throw ApiExceptionFactory.INSTANCE.createException(request, ApiError.INVALID_DATA); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -207,8 +209,10 @@ public class WebsiteResource { |
|
|
|
try { |
|
|
|
try { |
|
|
|
arbitraryDataWriter.save(); |
|
|
|
arbitraryDataWriter.save(); |
|
|
|
} catch (IOException | DataException e) { |
|
|
|
} catch (IOException | DataException e) { |
|
|
|
|
|
|
|
LOGGER.info("Unable to create arbitrary data file: {}", e.getMessage()); |
|
|
|
throw ApiExceptionFactory.INSTANCE.createException(request, ApiError.REPOSITORY_ISSUE); |
|
|
|
throw ApiExceptionFactory.INSTANCE.createException(request, ApiError.REPOSITORY_ISSUE); |
|
|
|
} catch (IllegalStateException e) { |
|
|
|
} catch (IllegalStateException e) { |
|
|
|
|
|
|
|
LOGGER.info("Unable to create arbitrary data file: {}", e.getMessage()); |
|
|
|
throw ApiExceptionFactory.INSTANCE.createException(request, ApiError.INVALID_DATA); |
|
|
|
throw ApiExceptionFactory.INSTANCE.createException(request, ApiError.INVALID_DATA); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|