Buffer Interface
Public Member Functions | Static Public Member Functions | List of all members
CLComm::BFCLException Class Reference

Exception thrown for CLAllSerial.h and BFSerial.h API errors. More...

#include <CLAllSerial.hpp>

Inheritance diagram for CLComm::BFCLException:
BFExceptionBase

Public Member Functions

 BFCLException (void)
 
 BFCLException (const CLINT32 number)
 
 BFCLException (BFCLException const &to_copy)
 
 BFCLException (BFCLException &&to_take)
 
BFCLExceptionoperator= (BFCLException const &to_copy)
 
BFCLExceptionoperator= (BFCLException &&to_take)
 
- Public Member Functions inherited from BFExceptionBase
 BFExceptionBase (void)
 
 BFExceptionBase (BFExceptionBase const &to_copy)
 
 BFExceptionBase (BFExceptionBase &&to_take)
 
virtual ~BFExceptionBase (void)
 
BFExceptionBaseoperator= (BFExceptionBase const &to_copy)
 
BFExceptionBaseoperator= (BFExceptionBase &&to_take)
 
virtual BFU32 getErrorText (PBFCHAR ErrorText, PBFU32 ErrorTextSize) const
 
virtual std::string getErrorText (void) const
 
virtual BFU32 getErrorNumber (void) const
 
virtual BFU32 showErrorMsg (void) const
 

Static Public Member Functions

static BFVOID check (const CLINT32 errorCode)
 

Additional Inherited Members

- Protected Member Functions inherited from BFExceptionBase
 BFExceptionBase (const BFU32 number, std::string const &message)
 
 BFExceptionBase (const BFU32 number, std::string &&message)
 

Detailed Description

Exception thrown for CLAllSerial.h and BFSerial.h API errors.

Possible CLAllSerial.h errors are:

Possible BFSerial.h errors are:

Constructor & Destructor Documentation

BFCLException::BFCLException ( void  )

Referenced by check().

741 { }
BFCLException::BFCLException ( const CLINT32  number)

Initialize a new BFCLException with the given error code and message.

Parameters
[in]number- The error code value for this BFCLException.
749  : BFExceptionBase ((BFU32)number, CLAllSerial::getErrorText(number))
750 { }
unsigned long BFU32
Definition: BFTypeNT.h:55
BFExceptionBase(void)
Definition: BFException.cpp:36
static std::string getErrorText(const CLINT32 ErrorCode)
Definition: CLAllSerial.cpp:60
BFCLException::BFCLException ( BFCLException const &  to_copy)

Initialize a new BFCLException, copying the contents of the exception to_copy.

Parameters
[in]to_copy- The exception to be copied.
758  : BFExceptionBase (to_copy)
759 { }
BFExceptionBase(void)
Definition: BFException.cpp:36
BFCLException::BFCLException ( BFCLException &&  to_take)

Initialize a new BFCLException, taking the contents of the exception to_take.

Parameters
[in]to_take- The exception to be taken.
767  : BFExceptionBase ( std::move(to_take) )
768 { }
BFExceptionBase(void)
Definition: BFException.cpp:36

Member Function Documentation

BFVOID BFCLException::check ( const CLINT32  errorCode)
static
BFCLException & BFCLException::operator= ( BFCLException const &  to_copy)

Copy the contents of the exception to_copy.

Parameters
[in]to_copy- The exception to be copied.
Returns
Returns a reference to this exception.

References BFExceptionBase::operator=().

778 {
780  return *this;
781 }
BFExceptionBase & operator=(BFExceptionBase const &to_copy)
Definition: BFException.cpp:95
BFCLException & BFCLException::operator= ( BFCLException &&  to_take)

Take the contents of the exception to_take.

Parameters
[in]to_take- The exception to be taken.
Returns
Returns a reference to this exception.

References BFExceptionBase::operator=().

791 {
792  BFExceptionBase::operator=( std::move(to_take) );
793  return *this;
794 }
BFExceptionBase & operator=(BFExceptionBase const &to_copy)
Definition: BFException.cpp:95

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