[#1994] Remove deprecated assert functions.

Description
----

Implement specialized `assertError` and `assertErrorID` that will check for a valid error type (ServerError and siblings) and data serialization.

This renders `assertExceptionID` and `assertExceptionData` deprecated.

Changes
----

I've removed the deprecated functions.

How to test
----

reviewers @adiroiban 

Check that the changes make sense.