From be9325ffc9a18d945b91a7d90a1d49df92dcfc0d Mon Sep 17 00:00:00 2001 From: Ben Ramsey Date: Sun, 20 Jan 2013 11:07:25 -0600 Subject: [PATCH] Updated example in README to show usage of try/catch for dependencies --- README.md | 39 ++++++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 319b53a..a55b955 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ library are recommended. However, this library is designed to work on 32-bit builds of PHP without Moontoast\Math, with some degraded functionality. Please check the API documention for more information. -If a particular requirement is not present, then a `[\Rhumsaa\Uuid\Exception\UnsatisfiedDependencyException][]` +If a particular requirement is not present, then a `Rhumsaa\Uuid\Exception\UnsatisfiedDependencyException` is thrown, allowing one to catch a bad call in an environment where the call is not supported and gracefully degrade. @@ -26,23 +26,36 @@ not supported and gracefully degrade. ```php getMessage() . "\n"; + +} ``` ## Installation