Create DelegationError class

Add line to end of file