File: doc/

Recommend this page to a friend!
  Classes of Xavier Pérez  >  XMongoDB  >  doc/  >  Download  
File: doc/
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: XMongoDB
Build and execute queries to a MongoDB database
Author: By
Last change: Chnages readme
Date: 5 years ago
Size: 734 bytes


Class file image Download


Exceptions can be handled by your code:

function MyExceptionHandler($exception) {
    $message = $exception->getMessage();
    $code = $exception->getCode();
    $previous = $exception->getPrevious();
    $file = $exception->getFile();
    $line = $exception->getLine();
    $trace = $exception->getTrace();

    echo "<h2>EXCEPTION</h2>";
    echo "<hr>";
    echo "Message error: $message - $code <br> File: $file  Line: $line <br>";
    echo "Message orig: ".$previous->getMessage()." - ".$previous->getCode()." <br> File: ".$previous->getFile()."  Line: ".$previous->getLine()." <br>";
    echo "<hr>";
    echo "<h2>TRACE</h2>";


For more information send a message to info at phpclasses dot org.