Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
srv
/
admin
/
htdocs
/
rockmongo
/
app
/
models
/
/srv/admin/htdocs/rockmongo/app/models/MMongo.php
<?php class MMongo { /** * Throw operation exception * * @param mixed $ret the result to be checked */ public static function checkException($ret) { if (!is_array($ret) || !isset($ret["ok"])) { return; } if ($ret["ok"]) { return; } if (isset($ret["assertion"])) { exit($ret["assertion"]); } if (isset($ret["errmsg"])) { exit($ret["errmsg"]); } p($ret); exit(); } /** * Read exception from response result * * @param array $ret response result * @return unknown|string */ public static function readException($ret) { if (!empty($ret["assertion"])) { return $ret["assertion"]; } if (!empty($ret["errmsg"])) { return $ret["errmsg"]; } return "unknown error"; } }