LPS-43335 Return the value only when is a instance of Exception