SwatDB
Public Member Functions | Private Attributes | List of all members
NameAlreadyExistCat Class Reference

#include <exceptions.h>

Inheritance diagram for NameAlreadyExistCat:
Inheritance graph
[legend]
Collaboration diagram for NameAlreadyExistCat:
Collaboration graph
[legend]

Public Member Functions

 NameAlreadyExistCat (const std::string &relname)
 Constructor. More...
 
 ~NameAlreadyExistCat () throw ()
 Destructor.
 
std::string getName () const throw ()
 Returns the name of the relation that already exists. More...
 
- Public Member Functions inherited from SwatDBException
 SwatDBException (const std::string &msg)
 
virtual ~SwatDBException () throw ()
 
virtual const char * what () const throw ()
 Returns the error message of the exception. More...
 

Private Attributes

std::string name
 

Additional Inherited Members

- Protected Attributes inherited from SwatDBException
std::string message
 

Detailed Description

NameAlreadyExistCat is thrown by Catalog on a new relation or index addition to the system if the relation name already exits.

Constructor & Destructor Documentation

◆ NameAlreadyExistCat()

NameAlreadyExistCat::NameAlreadyExistCat ( const std::string &  relname)
explicit

Constructor.

Parameters
file.Name of the relation that already exists.

Member Function Documentation

◆ getName()

std::string NameAlreadyExistCat::getName ( ) const
throw (
)

Returns the name of the relation that already exists.

Returns
Name of the relation that already exists.

Member Data Documentation

◆ name

std::string NameAlreadyExistCat::name
private

Name of the already existing relation.


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