Visual Servoing Platform  version 3.2.0
vpFrameGrabberException Class Reference

#include <vpFrameGrabberException.h>

+ Inheritance diagram for vpFrameGrabberException:

Public Types

enum  errorFrameGrabberCodeEnum { settingError, initializationError, otherError }
 
enum  generalExceptionEnum {
  memoryAllocationError, memoryFreeError, functionNotImplementedError, ioError,
  cannotUseConstructorError, notImplementedError, divideByZeroError, dimensionError,
  fatalError, badValue, notInitialized
}
 

Public Member Functions

 vpFrameGrabberException (const int id, const char *format,...)
 
 vpFrameGrabberException (const int id, const std::string &msg)
 
 vpFrameGrabberException (const int id)
 
Inherited functionalities from vpException
int getCode (void)
 
const std::string & getStringMessage (void) const
 
const char * getMessage (void) const
 
const char * what () const throw ()
 

Protected Member Functions

void setMessage (const char *format, va_list args)
 

Protected Attributes

int code
 
std::string message
 

Detailed Description

Error that can be emited by the vpFrameGrabber class and its derivates.

Definition at line 71 of file vpFrameGrabberException.h.

Member Enumeration Documentation

◆ errorFrameGrabberCodeEnum

Lists the possible error than can be emmited while calling vpFrameGrabber member.

Enumerator
settingError 
initializationError 
otherError 

Definition at line 114 of file vpFrameGrabberException.h.

◆ generalExceptionEnum

Enumerator
memoryAllocationError 

Memory allocation error.

memoryFreeError 

Memory free error.

functionNotImplementedError 

Function not implemented.

ioError 

I/O error.

cannotUseConstructorError 

Contructor error.

notImplementedError 

Not implemented.

divideByZeroError 

Division by zero.

dimensionError 

Bad dimension.

fatalError 

Fatal error.

badValue 

Used to indicate that a value is not in the allowed range.

notInitialized 

Used to indicate that a parameter is not initialized.

Definition at line 86 of file vpException.h.

Constructor & Destructor Documentation

◆ vpFrameGrabberException() [1/3]

vpFrameGrabberException::vpFrameGrabberException ( const int  id,
const char *  format,
  ... 
)
inline

Definition at line 117 of file vpFrameGrabberException.h.

◆ vpFrameGrabberException() [2/3]

vpFrameGrabberException::vpFrameGrabberException ( const int  id,
const std::string &  msg 
)
inline

Definition at line 125 of file vpFrameGrabberException.h.

◆ vpFrameGrabberException() [3/3]

vpFrameGrabberException::vpFrameGrabberException ( const int  id)
inlineexplicit

Definition at line 126 of file vpFrameGrabberException.h.

Member Function Documentation

◆ getCode()

int vpException::getCode ( void  )
inherited

Send the object code.

Examples
parallelPort.cpp, and ringLight.cpp.

Definition at line 93 of file vpException.cpp.

References vpException::code.

◆ getMessage()

const char * vpException::getMessage ( void  ) const
inherited

send a pointer on the array of char related to the error string. Cannot be NULL.

Examples
fernClassifier.cpp, mbot-apriltag-2D-half-vs.cpp, mbot-apriltag-ibvs.cpp, mbot-apriltag-pbvs.cpp, moveBiclops.cpp, parallelPort.cpp, servoBiclopsPoint2DArtVelocity.cpp, servoViper650FourPoints2DArtVelocityInteractionCurrent.cpp, servoViper650FourPoints2DCamVelocityInteractionCurrent-SR300.cpp, servoViper650FourPoints2DCamVelocityInteractionCurrent.cpp, servoViper650Point2DCamVelocity.cpp, servoViper850FourPoints2DArtVelocityInteractionCurrent.cpp, servoViper850FourPoints2DArtVelocityInteractionDesired.cpp, servoViper850FourPoints2DCamVelocityInteractionCurrent.cpp, servoViper850FourPointsKinect.cpp, servoViper850Point2DArtVelocity-jointAvoidance-basic.cpp, servoViper850Point2DArtVelocity-jointAvoidance-gpa.cpp, servoViper850Point2DArtVelocity-jointAvoidance-large.cpp, servoViper850Point2DArtVelocity.cpp, servoViper850Point2DCamVelocity.cpp, servoViper850Point2DCamVelocityKalman.cpp, testConversion.cpp, testDisplays.cpp, testReadImage.cpp, testRobotViper650-frames.cpp, testRobotViper850-frames.cpp, testTrackDot.cpp, trackMeNurbs.cpp, tutorial-apriltag-detector-live.cpp, tutorial-apriltag-detector.cpp, tutorial-barcode-detector.cpp, tutorial-draw-cross.cpp, tutorial-draw-line.cpp, tutorial-draw-point.cpp, tutorial-draw-rectangle.cpp, tutorial-draw-text.cpp, tutorial-face-detector-live.cpp, tutorial-face-detector.cpp, tutorial-image-display-scaled-auto.cpp, tutorial-image-display-scaled-manu.cpp, tutorial-image-display.cpp, tutorial-image-reader.cpp, tutorial-mb-generic-tracker-apriltag-live-realsense2.cpp, tutorial-mb-generic-tracker-apriltag-live-webcam.cpp, tutorial-mb-tracker-stereo.cpp, tutorial-pose-from-points-image.cpp, tutorial-pose-from-points-live.cpp, tutorial-pose-from-qrcode-image.cpp, and tutorial-video-reader.cpp.

Definition at line 89 of file vpException.cpp.

References vpException::message.

Referenced by vpTemplateTracker::trackPyr().

◆ getStringMessage()

◆ setMessage()

◆ what()

const char * vpException::what ( ) const
throw (
)
inherited

Member Data Documentation

◆ code

int vpException::code
protectedinherited

Contains the error code, see the errorCodeEnum table for details.

Definition at line 74 of file vpException.h.

Referenced by vpException::getCode(), and vpSimulatorException::vpSimulatorException().

◆ message

std::string vpException::message
protectedinherited

Contains an error message (can be empty)

Definition at line 77 of file vpException.h.

Referenced by vpException::getMessage(), vpException::getStringMessage(), and vpException::setMessage().