Open EmilySamantha80 opened 2 years ago
@EmilySamantha80 thanks for your feedback on our Release Candidate. Please keep it coming.
For now, you can get the error returned by the API using $ex->getError()
which will expose the message and further details.
The exception handling experience can definitely be improved so I'll keep this open to track that
I'm encoutering an issue with using ApiException to get exceptions in v2.0.0 RC9. The message variable is always blank with exceptions for most commands regarding working with sites, drives, and files. The exception is in there, just buried inside of a private 'error' variable.
Example of getting a site that doesn't exist:
This returns the a blank $ex->message, and the following var_dump($ex):