The exception thrown from BlockTypeRegistry::registerBlockType() if the same block type is being registered from a different plugin.
More...
#include <BlockTypeRegistry.h>
|
using | Super = std::runtime_error |
|
|
static AString | message (const std::shared_ptr< BlockInfo > &aPreviousRegistration, const std::shared_ptr< BlockInfo > &aNewRegistration) |
| Returns the general exception message formatted by the two registrations. More...
|
|
The exception thrown from BlockTypeRegistry::registerBlockType() if the same block type is being registered from a different plugin.
Definition at line 158 of file BlockTypeRegistry.h.
◆ Super
◆ AlreadyRegisteredException()
BlockTypeRegistry::AlreadyRegisteredException::AlreadyRegisteredException |
( |
const std::shared_ptr< BlockInfo > & |
aPreviousRegistration, |
|
|
const std::shared_ptr< BlockInfo > & |
aNewRegistration |
|
) |
| |
Creates a new instance of the exception that provides info on both the original registration and the newly attempted registration that caused the failure.
Definition at line 195 of file BlockTypeRegistry.cpp.
◆ message()
AString BlockTypeRegistry::AlreadyRegisteredException::message |
( |
const std::shared_ptr< BlockInfo > & |
aPreviousRegistration, |
|
|
const std::shared_ptr< BlockInfo > & |
aNewRegistration |
|
) |
| |
|
staticprivate |
Returns the general exception message formatted by the two registrations.
The output is used when logging.
Definition at line 209 of file BlockTypeRegistry.cpp.
◆ newRegistration()
std::shared_ptr<BlockInfo> BlockTypeRegistry::AlreadyRegisteredException::newRegistration |
( |
| ) |
const |
|
inline |
◆ previousRegistration()
std::shared_ptr<BlockInfo> BlockTypeRegistry::AlreadyRegisteredException::previousRegistration |
( |
| ) |
const |
|
inline |
◆ m_NewRegistration
std::shared_ptr<BlockInfo> BlockTypeRegistry::AlreadyRegisteredException::m_NewRegistration |
|
private |
◆ m_PreviousRegistration
std::shared_ptr<BlockInfo> BlockTypeRegistry::AlreadyRegisteredException::m_PreviousRegistration |
|
private |
The documentation for this class was generated from the following files: