Remoto - VFS: VFS_mongo_exception Class Reference
Remoto - VFS
VFS_mongo_exception Class Reference

Base class for VFS_mongo_exception subclasses. More...

#include <VFS_mongo.h>

Inheritance diagram for VFS_mongo_exception:
VFS_mongo_collectionException VFS_mongo_directoryException VFS_mongo_entryException

Public Member Functions

 VFS_mongo_exception (QString m)
 VFS_mongo_exception constructor. More...
 
virtual ~VFS_mongo_exception () throw ()
 
virtual const char * what () const throw ()
 Fetch the exception message, in the style of std::exception. More...
 

Protected Attributes

QString _message
 This exception's message. More...
 

Detailed Description

Base class for VFS_mongo_exception subclasses.

Parameters
mThe exception message

A subclass of this will be generated when a VFS_request on a VFS_mongo node cannot be satisfied.

Because the mongocxx driver uses exceptions to report errors, it's more natural for this node to do the same.

Definition at line 93 of file VFS_mongo.h.

Constructor & Destructor Documentation

◆ VFS_mongo_exception()

VFS_mongo_exception::VFS_mongo_exception ( QString  m)
explicit

VFS_mongo_exception constructor.

Parameters
mThe exception message

Definition at line 1065 of file VFS_mongo.cpp.

◆ ~VFS_mongo_exception()

VFS_mongo_exception::~VFS_mongo_exception ( )
throw (
)
virtual

Definition at line 1071 of file VFS_mongo.cpp.

Member Function Documentation

◆ what()

const char * VFS_mongo_exception::what ( ) const
throw (
)
virtual

Fetch the exception message, in the style of std::exception.

Returns
The exception message, as a const char *

Definition at line 1078 of file VFS_mongo.cpp.

Member Data Documentation

◆ _message

QString VFS_mongo_exception::_message
protected

This exception's message.

Definition at line 102 of file VFS_mongo.h.


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