Skip to content

Commit

Permalink
La til mapping fra ClosedReceivedChannelException til RemoveServiceEx…
Browse files Browse the repository at this point in the history
…ception for pdl.hentPerson
  • Loading branch information
nilsmsa committed Jul 2, 2024
1 parent 702c8da commit dd74cd8
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package no.nav.paw.arbeidssokerregisteret.services

import kotlinx.coroutines.channels.ClosedReceiveChannelException
import no.nav.paw.arbeidssokerregisteret.RequestScope
import no.nav.paw.arbeidssokerregisteret.plugins.InternFeilkode
import no.nav.paw.pdl.PdlClient
Expand Down Expand Up @@ -28,5 +29,11 @@ class PersonInfoService(
feilkode = InternFeilkode.UVENTET_FEIL_MOT_EKSTERN_TJENESTE,
causedBy = ex
)
} catch (ex: ClosedReceiveChannelException) {
throw RemoteServiceException(
description = "Feil ved henting av personinfo fra PDL",
feilkode = InternFeilkode.UVENTET_FEIL_MOT_EKSTERN_TJENESTE,
causedBy = ex
)
}
}

0 comments on commit dd74cd8

Please sign in to comment.