Updating use of Api::STAT_APP_EXCEPTION const

This commit is contained in:
Erik Amaru Ortiz
2013-12-02 12:56:13 -04:00
parent 8193f63b60
commit d7d22e57f5
5 changed files with 13 additions and 116 deletions

View File

@@ -38,7 +38,7 @@ class Activity extends Api
return $response;
} catch (\Exception $e) {
throw new RestException(Api::SYSTEM_EXCEPTION_STATUS, $e->getMessage());
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
}
}
@@ -53,7 +53,7 @@ class Activity extends Api
$task = new \BusinessModel\Task();
$properties = $task->updateProperties($activityUid, $projectUid, $request_data);
} catch (\Exception $e) {
throw new RestException(Api::SYSTEM_EXCEPTION_STATUS, $e->getMessage());
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
}
}
@@ -68,7 +68,7 @@ class Activity extends Api
$task = new \BusinessModel\Task();
$task->deleteTask($activityUid);
} catch (\Exception $e) {
throw new RestException(Api::SYSTEM_EXCEPTION_STATUS, $e->getMessage());
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
}
}
}