def failure_reason
if @exception && @exception.is_a?( MessagePack::MalformedFormatError )
return "it was not formatted correctly: %s" % [ @exception.message ]
elsif @exception
return "there was a %p when trying to decode it: %s" %
[ @exception.class, @exception.message ]
elsif @decoded && !@decoded.is_a?( @expected_type )
return "it was a msgpacked %p" % [ @decoded.class ]
else
return 'there was an unknown problem'
end
end