Vuzit_Service::$PublicKey = 'does not exist'; $doc = Vuzit_Document::findById($show_id); } catch (Vuzit_Exception $ex) { $exception = $ex; } break; case "doc_does_not_exist": try { $doc = Vuzit_Document::findById("doesnotexistblah"); } catch (Vuzit_Exception $ex) { $exception = $ex; } break; case "invalid_signature": try { Vuzit_Service::$PrivateKey = 'not_a_valid_key'; $doc = Vuzit_Document::findById($show_id); } catch (Vuzit_Exception $ex) { $exception = $ex; } break; } ?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"> <head> <title>Error Tests</title> </head> <body onload=""> <h2> Error tests
<?php require_once '../lib/vuzit.php'; Vuzit_Service::$PublicKey = 'b12c30a5-77aa-ef5f-9b4f-b83a4f88149e'; Vuzit_Service::$PrivateKey = 'YOUR_PRIVATE_KEY'; //Vuzit_Service::$ServiceUrl = 'http://vuzit.net'; $show_id = "4";