MantisBT: master 5c7e889e

Author Committer Branch Timestamp Parent
vboctor vboctor master 2017-12-07 10:51 master 295526c2
Changeset

Implement exception support for APIs

  • Map errors to API error buckets (e.g. not found, bad request, forbidden, etc)
  • Implement unhandled exception handler for APIs.
  • Remove redundant check in Issue Get and rely on exceptions instead.
  • bug_ensure_exists() and getting bug now triggers an exception in case bug not found instead of trigger_error().
mod - api/soap/mc_api.php Diff File
mod - api/soap/mc_core.php Diff File
mod - api/soap/mc_issue_api.php Diff File
mod - core/bug_api.php Diff File
mod - core/error_api.php Diff File