The Battle for Wesnoth  1.19.7+dev
Public Member Functions | Public Attributes | List of all members
image::modification::imod_exception Struct Referencefinal

Exception thrown by the operator() when an error occurs. More...

#include <image_modifications.hpp>

Inheritance diagram for image::modification::imod_exception:

Public Member Functions

 imod_exception (const std::stringstream &message_stream)
 Constructor. More...
 
 imod_exception (const std::string &message)
 Constructor. More...
 
 ~imod_exception () noexcept
 
- Public Member Functions inherited from lua_jailbreak_exception
virtual ~lua_jailbreak_exception () noexcept
 
void store () const noexcept
 Stores a copy the current exception to be rethrown. More...
 

Public Attributes

const std::string message
 The error message regarding the failed operation. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from lua_jailbreak_exception
static void rethrow ()
 Rethrows the stored exception. More...
 
- Static Public Attributes inherited from lua_jailbreak_exception
static int jail_depth = 0
 Depth of recursive luaW_pcall_internal() function calls. More...
 
- Static Protected Attributes inherited from lua_jailbreak_exception
static lua_jailbreak_exceptionjailbreak_exception = nullptr
 The exception to be rethrown. More...
 

Detailed Description

Exception thrown by the operator() when an error occurs.

Definition at line 66 of file image_modifications.hpp.

Constructor & Destructor Documentation

◆ imod_exception() [1/2]

image::modification::imod_exception::imod_exception ( const std::stringstream &  message_stream)

Constructor.

Precondition
message_stream.str()[message_stream.str().size() - 1] == '
'
Parameters
message_streamStream with the error message regarding the failed operation.

Definition at line 120 of file image_modifications.cpp.

References lua_jailbreak_exception::store().

◆ imod_exception() [2/2]

image::modification::imod_exception::imod_exception ( const std::string &  message)

Constructor.

Precondition
message[message.size() - 1] == '
'
Parameters
messageString with the error message regarding the failed operation.

Definition at line 126 of file image_modifications.cpp.

References lua_jailbreak_exception::store().

◆ ~imod_exception()

image::modification::imod_exception::~imod_exception ( )
inlinenoexcept

Definition at line 89 of file image_modifications.hpp.

Member Data Documentation

◆ message

const std::string image::modification::imod_exception::message

The error message regarding the failed operation.

Definition at line 92 of file image_modifications.hpp.


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