Krotos Modules 3
Loading...
Searching...
No Matches
krotos::JsonException Class Referencefinal

An exception for the JSON file class. More...

#include <JsonFile.h>

Inheritance diagram for krotos::JsonException:

Public Member Functions

 JsonException (const String &whatHappened, const String &whenDidItHappen)
 
char const * what () const noexcept override
 
String when () const
 Get the "when" status of the exception. This is the context behind the "what" action.
 

Private Attributes

String m_whenDidItHappen
 

Detailed Description

An exception for the JSON file class.

Specific exception for preset handling. Provides what() and when() functions.

Constructor & Destructor Documentation

◆ JsonException()

krotos::JsonException::JsonException ( const String & whatHappened,
const String & whenDidItHappen )

Member Function Documentation

◆ what()

char const * krotos::JsonException::what ( ) const
overridenoexcept

◆ when()

String krotos::JsonException::when ( ) const

Get the "when" status of the exception. This is the context behind the "what" action.

Returns
A string describing when the exception occurred.

Member Data Documentation

◆ m_whenDidItHappen

String krotos::JsonException::m_whenDidItHappen
private

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