LPS-46262 Encapsulate exceptions