Skip to content

Pylon::GenericException#

pylon exception class More…

#include <pylon/TypeMappings.h>

Inherited by Pylon::AccessException, Pylon::AviWriterFatalException, Pylon::BadAllocException, Pylon::DynamicCastException, Pylon::InvalidArgumentException, Pylon::LogicalErrorException, Pylon::OutOfRangeException, Pylon::PropertyException, Pylon::RuntimeException, Pylon::TimeoutException

Public Functions#

Name
GenericException(const char * pDescription, const char * pSourceFileName, unsigned int SourceLine)
Constructs an exception.
virtual const char * GetDescription() const
Returns error description.
virtual const char * GetSourceFileName() const
Returns the filename of the file where the exception was thrown.
virtual unsigned int GetSourceLine() const
Returns the line number of the file where the exception was thrown.
virtual const char * what() const
Returns a descriptive text of the exception.

Detailed Description#

class Pylon::GenericException;

pylon exception class

This is pylons exception class. It is also used as a base class for all other pylon exceptions. To catch all pylon and genicam exceptions it is sufficient to catch GenericException.

Public Functions Documentation#

function GenericException#

GenericException(
    const char * pDescription,
    const char * pSourceFileName,
    unsigned int SourceLine
)

Constructs an exception.

function GetDescription#

virtual const char * GetDescription() const

Returns error description.

function GetSourceFileName#

virtual const char * GetSourceFileName() const

Returns the filename of the file where the exception was thrown.

function GetSourceLine#

virtual unsigned int GetSourceLine() const

Returns the line number of the file where the exception was thrown.

function what#

virtual const char * what() const

Returns a descriptive text of the exception.