oRastor / jira-client

A simple PHP JIRA REST client
MIT License
20 stars 18 forks source link

Add use for exception handling #1

Closed goetzk closed 9 years ago

goetzk commented 9 years ago

I was using an invalid/missing issue type but because this error handling was broken I was getting an error on the error handling.

Error I experienced

PHP Fatal error: Class 'JiraClient\Request\JiraException' not found in /path/to/jira-client/src/Request/Issue.php on line 51

Error after fixing import

exception 'JiraClient\Exception\JiraException' with message 'Project 'JIRA' and issue type 'Suggestion' missing from create metadata in /path/to/jira-client/src/Request/Issue.php on line 52 followed by the stracktrace

oRastor commented 9 years ago

Thanx