Skip to content

Commit

Permalink
Updated name
Browse files Browse the repository at this point in the history
  • Loading branch information
rtomyj committed Nov 18, 2023
1 parent 1349433 commit 582398b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/kotlin/com/rtomyj/podcast/service/PodcastService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class PodcastService @Autowired constructor(
companion object {
private val log = LoggerFactory.getLogger(this::class.java.name)

private const val SQLExceptionLog = "SQLException occurred while inserting new podcast info. {}"
private const val SQL_EXCEPTION_LOG = "SQLException occurred while inserting new podcast info. {}"
private const val PODCAST_ID_NOT_FOUND = "Podcast ID not found in DB"
private const val EPISODE_ID_NOT_FOUND = "Episode ID not found in DB"
private const val SOMETHING_WENT_WRONG = "Something went wrong!"
Expand Down Expand Up @@ -82,7 +82,7 @@ class PodcastService @Autowired constructor(
try {
podcastCrudRepository.save(podcast)
} catch (ex: DataAccessException) {
log.error(SQLExceptionLog, ex.toString())
log.error(SQL_EXCEPTION_LOG, ex.toString())
throw PodcastException(SOMETHING_WENT_WRONG, ErrorType.DB003)
}
}
Expand Down Expand Up @@ -139,7 +139,7 @@ class PodcastService @Autowired constructor(
try {
podcastEpisodePagingAndSortingRepository.save(podcastEpisode)
} catch (ex: DataAccessException) {
log.error(SQLExceptionLog, ex.toString())
log.error(SQL_EXCEPTION_LOG, ex.toString())
throw PodcastException(SOMETHING_WENT_WRONG, ErrorType.DB003)
}
}
Expand Down

0 comments on commit 582398b

Please sign in to comment.