Vuzit library exception handler class.
| Vuzit_Exception | Vuzit library exception handler class. |
| Functions | |
| __construct | Constructor |
| __toString | Returns the error in a string format. |
public function __construct( $message, $code = 0 )
Constructor
| message | Error message sent from the web service. |
| code | Error code from the web service. |
Vuzit_Exception
try {
$doc = Vuzit_Document::findById("DOCUMENT_ID");
}
catch(Vuzit_Exception $ex) {
echo "Error code: " . $ex->getCode() . ", message: " . $ex->getMessage();
}Constructor
public function __construct( $message, $code = 0 )
Returns the error in a string format.
public function __toString()