paludis  Version 2.6.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) noexcept
 
 NameError (const std::string &name, const std::string &role, const std::string &msg) noexcept
 
- Protected Member Functions inherited from paludis::Exception
 Exception (const std::string &message) noexcept
 
 Exception (const Exception &)
 

Additional Inherited Members

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

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 
)
protectednoexcept

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 
)
protectednoexcept

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: