lib/postini/exceptions.rb
# Find the correct sub-class and pass the exception on
Find the correct sub-class and pass the exception on
Find the correct sub - class and pass the exception on
def delegate( reason )
        if reason =~ /^(\w+):/
          type = $1
          type << 'Exception' unless type =~ /Exception$/
          if Postini.const_defined?( type )
            return Postini.const_get( type ).new( reason )
          end
        end
        return new( reason )
      end
def delegate ( reason ) if reason =~ / ^( \w +): / type = $1 type << 'Exception' unless type =~ / Exception$ / if Postini . const_defined? ( type ) return Postini . const_get ( type ) . new ( reason ) end end return new ( reason ) end
Find the correct sub-class and pass the exception on
Find the correct sub - class and pass the exception on
reason
<not_specific>