Skip to content

Commit

Permalink
Logge uventet feilkode på alle steder hvor vi catcher PSQLException (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
boerta authored Dec 13, 2024
1 parent 4a62d6b commit 2197043
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class FeltdefinisjonRepository(val områdeRepository: OmrådeRepository) {
if (e.sqlState.equals("23503")) {
throw IllegalDeleteException("Kan ikke slette feltdefinisjon som brukes av oppgavetype", e)
} else {
log.error("PSQLEXception, uventet feilkode: ${e.sqlState}", e)
throw e
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ class OppgavetypeRepository(
if (e.sqlState.equals("23503")) {
throw IllegalDeleteException("Kan ikke slette oppgavefelt som brukes av oppgave", e)
} else {
log.error("PSQLEXception, uventet feilkode: ${e.sqlState}", e)
throw e
}
}
Expand Down

0 comments on commit 2197043

Please sign in to comment.