paludis  Version 1.4.0
Protected Member Functions | List of all members
paludis::NameError Class Reference

#include <exception.hh>

+ Inheritance diagram for paludis::NameError:

Protected Member Functions

 NameError (const std::string &name, const std::string &role) throw ()
 
 NameError (const std::string &name, const std::string &role, const std::string &msg) throw ()
 
- Protected Member Functions inherited from paludis::Exception
 Exception (const std::string &message) throw ()
 
 Exception (const Exception &)
 

Additional Inherited Members

- Public Member Functions inherited from paludis::Exception
const std::string & message () const PALUDIS_ATTRIBUTE((nothrow)) throw ()
 
std::string backtrace (const std::string &delim) const
 
bool empty () const
 
const char * what () const throw ()
 
virtual ~Exception () PALUDIS_ATTRIBUTE((nothrow)) throw ()
 

Detailed Description

A NameError is an Exception that is thrown when some kind of invalid name is encountered.

Examples:
example_name.cc.

Constructor & Destructor Documentation

paludis::NameError::NameError ( const std::string &  name,
const std::string &  role 
) throw ()
protected

Constructor.

Parameters
nameThe invalid name encountered.
roleThe role for the name, for example "package name".
paludis::NameError::NameError ( const std::string &  name,
const std::string &  role,
const std::string &  msg 
) throw ()
protected

Constructor.

Parameters
nameThe invalid name encountered.
roleThe role for the name, for example "package name".
msgAny extra message.

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