class P1::CameraSdk::SdkException

Overview

Base exception class for all exception thrown from the C++ API. More…

#include <P1CameraExceptions.hpp>

class SdkException: public runtime_error
{
public:
    // fields

    ErrorCode mErrorCode;

    // construction

    SdkException(const SdkException& e2);
    SdkException(ErrorCode errorCode = kError);
    SdkException(const char* message, ErrorCode errorCode = kError);
};

// direct descendants

class AnotherThreadPendingExc;
class CameraCouldNotConnectExc;
class CameraNotOpenExc;
class ImageReceiveTimeoutExc;
class NotificationAlreadyExistsExc;
class NotificationTimeoutExc;
class PropertyNotFoundExc;
class PropertyOutOfRangeException;
class PropertySetFailedException;
class PropertyTypeNotFoundExc;
class PropertyValueNotInListException;
class PropertyWrongTypeExc;
class SdkCameraNotFoundExc;
class SdkFactoryErrorExc;
class SdkNoFactoryExc;
class SdkNotOpenExc;
class SdkNotYetImplementedExc;

Detailed Documentation

Base exception class for all exception thrown from the C++ API.

A child class would normally call this class’ constructor to extract the human readable error message string. This string is then provided to the default std::exception class.