Created
April 24, 2020 17:10
-
-
Save Raouf25/9db5b3f93e38f5293a2015ce0e69f504 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Agreement getById(Integer id) throws BackendException { | |
try { | |
AgreementDto agreementDto = this.agreementClientService.get(id); | |
return mapper.map(agreementDto, Agreement.class); | |
} catch (ResourceAccessException e) { | |
throw new CatalogClientUnavailableException(); | |
} catch (CatalogException e) { | |
throw new ResourceNotFoundException(id, "Agreement"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment