Skip to content

Commit 2b0564b

Browse files
committed
fixed exception class type.
1 parent 2dac560 commit 2b0564b

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ try {
9191
$p = $proj->get('TEST');
9292

9393
print_r($p);
94-
} catch (JIRAException $e) {
94+
} catch (JiraException $e) {
9595
print("Error Occured! " . $e->getMessage());
9696
}
9797

@@ -116,7 +116,7 @@ try {
116116
);
117117

118118
}
119-
} catch (JIRAException $e) {
119+
} catch (JiraException $e) {
120120
print("Error Occured! " . $e->getMessage());
121121
}
122122

@@ -203,7 +203,7 @@ try {
203203
$issue = $issueService->get('TEST-867', $queryParam);
204204

205205
print_r($issue->fields);
206-
} catch (JIRAException $e) {
206+
} catch (JiraException $e) {
207207
print("Error Occured! " . $e->getMessage());
208208
}
209209

@@ -236,7 +236,7 @@ try {
236236

237237
//If success, Returns a link to the created issue.
238238
print_r($ret);
239-
} catch (JIRAException $e) {
239+
} catch (JiraException $e) {
240240
print("Error Occured! " . $e->getMessage());
241241
}
242242

@@ -274,7 +274,7 @@ try {
274274

275275
//If success, returns an array of the created issues
276276
print_r($ret);
277-
} catch (JIRAException $e) {
277+
} catch (JiraException $e) {
278278
print("Error Occured! " . $e->getMessage());
279279
}
280280

@@ -318,7 +318,7 @@ try {
318318

319319
//If success, Returns a link to the created sub task.
320320
print_r($ret);
321-
} catch (JIRAException $e) {
321+
} catch (JiraException $e) {
322322
print("Error Occured! " . $e->getMessage());
323323
}
324324

@@ -343,7 +343,7 @@ try {
343343
array('screen_capture.png', 'bug-description.pdf', 'README.md'));
344344

345345
print_r($ret);
346-
} catch (JIRAException $e) {
346+
} catch (JiraException $e) {
347347
$this->assertTrue(FALSE, "Attach Failed : " . $e->getMessage());
348348
}
349349

@@ -377,7 +377,7 @@ try {
377377

378378
$ret = $issueService->update($issueKey, $issueField);
379379

380-
} catch (JIRAException $e) {
380+
} catch (JiraException $e) {
381381
$this->assertTrue(FALSE, "update Failed : " . $e->getMessage());
382382
}
383383

@@ -413,7 +413,7 @@ COMMENT;
413413
$issueService = new IssueService();
414414
$ret = $issueService->addComment($issueKey, $comment);
415415
print_r($ret);
416-
} catch (JIRAException $e) {
416+
} catch (JiraException $e) {
417417
$this->assertTrue(FALSE, "add Comment Failed : " . $e->getMessage());
418418
}
419419

@@ -438,7 +438,7 @@ try {
438438
$issueService = new IssueService();
439439

440440
$issueService->transition($issueKey, $transition);
441-
} catch (JIRAException $e) {
441+
} catch (JiraException $e) {
442442
$this->assertTrue(FALSE, "add Comment Failed : " . $e->getMessage());
443443
}
444444

@@ -459,7 +459,7 @@ try {
459459

460460
$ret = $issueService->search($jql);
461461
var_dump($ret);
462-
} catch (JIRAException $e) {
462+
} catch (JiraException $e) {
463463
$this->assertTrue(false, 'testSearch Failed : '.$e->getMessage());
464464
}
465465

@@ -491,7 +491,7 @@ try {
491491
// add time tracking
492492
$ret = $issueService->timeTracking($this->issueKey, $timeTracking);
493493
var_dump($ret);
494-
} catch (JIRAException $e) {
494+
} catch (JiraException $e) {
495495
$this->assertTrue(false, 'testSearch Failed : '.$e->getMessage());
496496
}
497497

@@ -513,7 +513,7 @@ try {
513513
// get issue's worklog
514514
$worklogs = $issueService->getWorklog($issueKey)->getWorklogs();
515515
var_dump($worklogs);
516-
} catch (JIRAException $e) {
516+
} catch (JiraException $e) {
517517
$this->assertTrue(false, 'testSearch Failed : '.$e->getMessage());
518518
}
519519

0 commit comments

Comments
 (0)