Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
BIAS::clfException Class Reference

clf Exception wrapper, is thrown in case of most clf errors More...

#include <OpenCLFramework/clfException.hh>

+ Inheritance diagram for BIAS::clfException:
+ Collaboration diagram for BIAS::clfException:

Public Member Functions

 clfException (cl::Error clerror, std::string file, int line) throw ()
 is called by THROW_CL_EXCEPTION macro More...
 
const std::string & GetDetailedString () const throw ()
 detailed combination of all info available More...
 
int GetErrorCode () const throw ()
 clf error code More...
 
const std::string & GetFileName () const throw ()
 file in which error occured More...
 
int GetLineNumber () const throw ()
 line in which error occured More...
 
const std::string & GetMessageString () const throw ()
 clf error message (usually name of failing c function) More...
 
const std::string & GetReasonString () const throw ()
 clf translated error code (todo clean up text) More...
 
virtual const char * what () const throw ()
 
virtual ~clfException () throw ()
 

Detailed Description

clf Exception wrapper, is thrown in case of most clf errors

clf Exceptions are enabled in this library. This class wraps these exceptions and add more information. Almost all functions in the library throw an exception instead of returning error codes, so catch them!

Author
fkellner 06/11

Definition at line 48 of file clfException.hh.

Constructor & Destructor Documentation

BIAS::clfException::clfException ( cl::Error  clerror,
std::string  file,
int  line 
)
throw (
)

is called by THROW_CL_EXCEPTION macro

Definition at line 33 of file clfException.cpp.

virtual BIAS::clfException::~clfException ( )
throw (
)
inlinevirtual

Definition at line 53 of file clfException.hh.

Member Function Documentation

const std::string & BIAS::clfException::GetDetailedString ( ) const
throw (
)
int BIAS::clfException::GetErrorCode ( ) const
throw (
)

clf error code

Definition at line 209 of file clfException.cpp.

const std::string & BIAS::clfException::GetFileName ( ) const
throw (
)

file in which error occured

Definition at line 207 of file clfException.cpp.

int BIAS::clfException::GetLineNumber ( ) const
throw (
)

line in which error occured

Definition at line 208 of file clfException.cpp.

const std::string & BIAS::clfException::GetMessageString ( ) const
throw (
)

clf error message (usually name of failing c function)

Definition at line 210 of file clfException.cpp.

Referenced by BIAS::clfGauss< InputStorageType, OutputStorageType >::clfGauss().

const std::string & BIAS::clfException::GetReasonString ( ) const
throw (
)

clf translated error code (todo clean up text)

Definition at line 211 of file clfException.cpp.

const char * BIAS::clfException::what ( ) const
throw (
)
virtual

Definition at line 215 of file clfException.cpp.


The documentation for this class was generated from the following files: