class P1::CameraSdk::SdkException

Overview

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

#include <C_P1CameraCommonExceptions.h>

class SdkException: public runtime_error
{
public:
    // fields

    ErrorCode mErrorCode;

    // construction

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

// direct descendants

class AnotherThreadPendingExc;
class CameraCouldNotConnectExc;
class CameraNotOpenExc;
class FeatureIsNotAvailable;
class ImageReceiveTimeoutExc;
class IncompatibleSubscriptionOptions;
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.