Add DelegationError class. Rasied by delegation to a nil object
Merge pull request #10828 from southpolesteve/delegation_error_class

Create DelegationError class