add tryCreateNetwork()
authorPetr Lapukhov <petr@fb.com>
Wed, 17 Jan 2018 03:01:23 +0000 (19:01 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 17 Jan 2018 03:10:06 +0000 (19:10 -0800)
commit9bf260657e140cace3cab8850d6a40fac3a5cd93
tree7810ead2364563cb8d12c4d6c8d889508659f4b3
parent61cdb3dc27700545a65062e174d1b7f1ac15f088
add tryCreateNetwork()

Summary: Add non-throwing version of createNetwork(), and rework existing code to throw exceptions based on error codes returned by non-throwing version.

Reviewed By: yfeldblum

Differential Revision: D6705425

fbshipit-source-id: 268ff64c36e7cceeea3463248d18b7b2cb81390e
folly/IPAddress.cpp
folly/IPAddress.h
folly/IPAddressException.h
folly/test/IPAddressTest.cpp