에러 표기 방식 변경.

- DB 에러도 throw exception을 수행
- exception handler 추가.
- error 발생시 콜 스택을 json 형태로 보관
This commit is contained in:
2018-04-12 21:24:28 +09:00
parent c87614ab2d
commit 4d2b10b979
3 changed files with 32 additions and 4 deletions
+2
View File
@@ -29,6 +29,8 @@ class RootDB
if (self::$uDB === null) {
self::$uDB = new \MeekroDB(self::$host, self::$user, self::$password, self::$dbName, self::$port, self::$encoding);
self::$uDB->connect_options[MYSQLI_OPT_INT_AND_FLOAT_NATIVE] = true;
self::$uDB->throw_exception_on_error = true;
self::$uDB->throw_exception_on_nonsql_error = true;
}
return self::$uDB;
}