diff --git a/examples/error_handling.php b/examples/error_handling.php new file mode 100644 index 0000000..1cbda86 --- /dev/null +++ b/examples/error_handling.php @@ -0,0 +1,15 @@ + 'files/test.docx', 'converter' => 'DUMMY']); +} catch (\ConvertApi\Error\Api $error) { + echo "Got API error code: " . $error->getCode() . "\n"; + echo $error->getMessage(); +} +