Camera driver Exception. More...
#include <pmdcamera_exceptions.h>
Public Member Functions | |
CPmdCameraException (const std::string &where, const std::string &error_msg) | |
Class constructor. |
Camera driver Exception.
This class is used to report errors of the camera driver which are not caused by calls to the pmdaccess library functions. These errors are normally caused by providing incorrect parameters to the driver functions, attempting to perform invalid operations or performing a sequence of operations in the incorrect order.
This class is only provided to help distinguish between internal firewire errors and errors of the driver itself, but it does not add any additional feature over the base class CPmdCameraException.
Definition at line 48 of file pmdcamera_exceptions.h.
CPmdCameraException::CPmdCameraException | ( | const std::string & | where, |
const std::string & | error_msg | ||
) |
Class constructor.
This constructor initializes the error message by calling the constructor of the base class. In this case, "[Exception caught] - " is also pre-appended to the error message to label it as an exception.
where | a null terminated string with the information about the name of the function, the source code filename and the line where the exception was generated. This string must be generated by the _HERE_ macro. |
error_msg | a null terminated string that contains the error message. This string may have any valid character and there is no limit on its length. |
Definition at line 17 of file pmdcamera_exceptions.cpp.