Clean up DataContainerCodecContext exception handling
We are getting confused between immediate throws and returns. The
exception factory methods should be returning the exception and not
throwing it.
Fix this up and add a SpotBugs annotation so that throws are guarded.
Also mark IncorrectNestingException for evolution. Final improvement
that we now have a completely-static factory method.
Change-Id: I5262c0dbb31d6935f258909828aac5331c70801b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
469a57c3adac4b6ae0df0c6398d926096cca13e2)