Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Private Types | Private Attributes | List of all members
BlockTypeRegistry::NotRegisteredException Class Reference

The exception thrown from BlockTypeRegistry::setBlockTypeHint() if the block type has not been registered before. More...

#include <BlockTypeRegistry.h>

Inheritance diagram for BlockTypeRegistry::NotRegisteredException:
Inheritance graph
[legend]
Collaboration diagram for BlockTypeRegistry::NotRegisteredException:
Collaboration graph
[legend]

Public Member Functions

const AStringblockTypeName () const
 
 NotRegisteredException (const AString &aBlockTypeName, const AString &aHintKey, const AString &aHintValue)
 Creates a new instance of the exception that provides info on both the original registration and the newly attempted registration that caused the failure. More...
 

Private Types

using Super = std::runtime_error
 

Private Attributes

const AString m_BlockTypeName
 

Detailed Description

The exception thrown from BlockTypeRegistry::setBlockTypeHint() if the block type has not been registered before.

Definition at line 195 of file BlockTypeRegistry.h.

Member Typedef Documentation

◆ Super

using BlockTypeRegistry::NotRegisteredException::Super = std::runtime_error
private

Definition at line 197 of file BlockTypeRegistry.h.

Constructor & Destructor Documentation

◆ NotRegisteredException()

BlockTypeRegistry::NotRegisteredException::NotRegisteredException ( const AString aBlockTypeName,
const AString aHintKey,
const AString aHintValue 
)

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 229 of file BlockTypeRegistry.cpp.

Member Function Documentation

◆ blockTypeName()

const AString& BlockTypeRegistry::NotRegisteredException::blockTypeName ( ) const
inline

Definition at line 210 of file BlockTypeRegistry.h.

Member Data Documentation

◆ m_BlockTypeName

const AString BlockTypeRegistry::NotRegisteredException::m_BlockTypeName
private

Definition at line 215 of file BlockTypeRegistry.h.


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