Skip to content

Commit

Permalink
Logge uventet feilkode ved PSQLException (#2795)
Browse files Browse the repository at this point in the history
* Logge uventet feilkode ved PSQLException

* Henge på stacktrace

* Trøtt-tax
  • Loading branch information
boerta authored Dec 13, 2024
1 parent 20ec610 commit 4a62d6b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class ReservasjonV3Repository(
} else if (e.sqlState == "23503" && e.message!!.contains("fk_reservasjon_v3_01")) {
throw IllegalArgumentException("Saksbehandler med id ${reservasjonV3.reservertAv} finnes ikke")
} else {
log.error("PSQLEXception, uventet feilkode: ${e.sqlState}", e)
throw e
}
}
Expand Down

0 comments on commit 4a62d6b

Please sign in to comment.