def errors_for( domain, &block )
      domain_descriptions = Hoodoo::ErrorDescriptions::DomainDescriptions.new( domain )
      domain_descriptions.instance_eval( &block )

      @descriptions.merge!( domain_descriptions.descriptions )
    end
def errors_for( domain, &block )
      domain_descriptions = Hoodoo::ErrorDescriptions::DomainDescriptions.new( domain )
      domain_descriptions.instance_eval( &block )

      @descriptions.merge!( domain_descriptions.descriptions )
    end
Create an instance, self-declaring +platform+ and +generic+ domain
 errors. You can optionally call the constructor with an error domain
 and code block, to declare errors all in one go rather than making a
 separate call to #errors_for (but both approaches are valid).

 +domain+:: Optional domain, just as used in #errors_for
 &block:: Optional block, just as used in #errors_for

 Implement the collection's part of the small DSL used for error
 declaration. Call here, passing the error domain (usually the singular
 service name or resource name, e.g. "+transaction+" and defined by the
 part of the platform API the service is implementing) and a block. The
 block makes one or more "+error+" calls, which actually end up calling
 Hoodoo::ErrorDescriptions::DomainDescriptions#error behind the scenes.

 See the implementation of #initialize for a worked example.

 +domain+:: Error domain, e.g. +platform+, +transaction+
 &block:: Block which makes one or more calls to "+error+"