Grabber::getLastError Method |
||
Returns information about an error that occurred, during the last library-method call. | ||
Syntax: | Error getLastError(); |
|
Return value: | An Error object. |
|
Remarks: | Returns the error that occurred during the last call to a method of this object. If no error occurred, eNO_ERROR is returned. The MemBufferCollection has its own MemBufferCollection::getLastError method. Errors that occur in a method call to a MemBufferCollection object will be reported there. |
|
Sample: | if( grabber->getLastError() ) { printf( "Error: %s\n", grabber->getLastError().toString().c_str() ); } |
|
See also: | Grabber, Error, MemBufferCollection::getLastError |