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#

GenericException#

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

Constructs an exception.

GetDescription#

virtual const char * GetDescription() const

Returns error description.

GetSourceFileName#

virtual const char * GetSourceFileName() const

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

GetSourceLine#

virtual unsigned int GetSourceLine() const

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

what#

virtual const char * what() const

Returns a descriptive text of the exception.


Updated on 5 July 2022 at 15:30:00