Vuzit_Exception

Vuzit library exception handler class.

Summary
Vuzit_ExceptionVuzit library exception handler class.
Functions
__constructConstructor
__toStringReturns the error in a string format.

Functions

__construct

public function __construct($message,  
$code =  0)

Constructor

Parameters

messageError message sent from the web service.
codeError code from the web service.

Returns

Vuzit_Exception

Example

try {
  $doc = Vuzit_Document::findById("DOCUMENT_ID");
}
catch(Vuzit_Exception $ex) {
  echo "Error code: " . $ex->getCode() . ", message: " . $ex->getMessage();
}

__toString

public function __toString()

Returns the error in a string format.

public function __construct($message,  
$code =  0)
Constructor
public function __toString()
Returns the error in a string format.
Close