The exception message should make it clear that the user has to provide a serializer on construction. It should be thrown immediately in the constructor (null-check)