Simple exception handler and error handler added, profile update added with stubs
[shipsimu.git] / inc / classes / exceptions / database / general / class_SqlException.php
index 5cd4385c616543bd0e421ebeae0a49f04b025803..f7dddab54481d691495a61399fd3ed5cb1ec8f1c 100644 (file)
@@ -31,11 +31,11 @@ class SqlException extends DatabaseException {
         */
        public function __construct (array $msgArray, $code) {
                // Construct the message
-               $message = sprintf("[%s:%d] SQL error detected. Message from database: <u>%s</u>, code: <u>0x%s</u>.",
+               $message = sprintf("[%s:%d] SQL error detected. Message from database: <u>%s</u>, code: <u>%s</u>.",
                        $msgArray[0]->__toString(),
                        $this->getLine(),
                        $msgArray[1],
-                       dechex($msgArray[2])
+                       $this->getHexCode($msgArray[2])
                );
 
                // Call parent constructor