public function limitQuery() { $query = new ParseQuery("Test"); try { ParseClient::$THROW_RESPONSE = true; $query->limit(10); $results = $query->find(); } catch (\Exception $ex) { $msg = json_decode($ex->getMessage(), true); return $msg ? $msg : $ex->getMessage(); } }