paludis Version 3.0.2
The one true package mangler
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
 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 override

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

◆ NameError() [1/2]

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".

◆ NameError() [2/2]

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: