CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::StringIDCollisionError Class Reference

The exception class thrown by the default CollisionHandler. More...

#include <CeresEngine/Foundation/StringID.hpp>

Inheritance diagram for CeresEngine::StringIDCollisionError:
CeresEngine::RuntimeError CeresEngine::Exception

Public Member Functions

 StringIDCollisionError (StringID::Hash hash, StringView a, StringView b)
 Creates a new exception, same parameter as CollisionError.
 
StringView getFirstString () const noexcept
 Returns the first string that collided.
 
StringView getSecondString () const noexcept
 Returns the second string that collided.
 
StringID::Hash getHashCode () const noexcept
 Returns the hash code of the collided strings.
 
- Public Member Functions inherited from CeresEngine::RuntimeError
template<typename S , typename... Args>
 RuntimeError (const S &formatString, Args &&... args)
 
- Public Member Functions inherited from CeresEngine::Exception
 Exception (const char *typeName, const String &description="", const SourceLocation &sourceLocation=SourceLocation::current())
 
template<typename S , typename... Args>
 Exception (const char *typeName, const S &formatString, Args &&... args)
 
 Exception (const Exception &other)=default
 
Exceptionoperator= (const Exception &other)=default
 
 Exception (Exception &&other) noexcept=default
 
Exceptionoperator= (Exception &&other) noexcept=default
 
 ~Exception () noexcept override=default
 
virtual const StringgetFullDescription () const
 Returns a string with the full description of the exception.
 
virtual StringView getSource () const noexcept
 Gets the source function that threw the exception.
 
virtual StringView getFile () const noexcept
 Gets the source file name in which the exception was thrown.
 
virtual UInt32 getLine () const noexcept
 Gets line number on which the exception was thrown.
 
virtual StringView getDescription () const noexcept
 Gets a short description about the exception.
 
const charwhat () const noexcept override
 Overriden std::exception::what. Returns the same value as getFullDescription().
 

Private Attributes

String mFirstString
 
String mSecondString
 
StringID::Hash mHashCode
 

Detailed Description

The exception class thrown by the default CollisionHandler.

Constructor & Destructor Documentation

◆ StringIDCollisionError()

CeresEngine::StringIDCollisionError::StringIDCollisionError ( StringID::Hash  hash,
StringView  a,
StringView  b 
)
inline

Creates a new exception, same parameter as CollisionError.

Member Function Documentation

◆ getFirstString()

StringView CeresEngine::StringIDCollisionError::getFirstString ( ) const
inlinenoexcept

Returns the first string that collided.

◆ getHashCode()

StringID::Hash CeresEngine::StringIDCollisionError::getHashCode ( ) const
inlinenoexcept

Returns the hash code of the collided strings.

◆ getSecondString()

StringView CeresEngine::StringIDCollisionError::getSecondString ( ) const
inlinenoexcept

Returns the second string that collided.

Member Data Documentation

◆ mFirstString

String CeresEngine::StringIDCollisionError::mFirstString
private

◆ mHashCode

StringID::Hash CeresEngine::StringIDCollisionError::mHashCode
private

◆ mSecondString

String CeresEngine::StringIDCollisionError::mSecondString
private

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