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

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

#include <image_modifications.hpp>

Inheritance diagram for image::modification::imod_exception:
Inheritance graph

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 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 64 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 118 of file image_modifications.cpp.

Referenced by image::blit_modification::operator()().

◆ 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 123 of file image_modifications.cpp.

◆ ~imod_exception()

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

Definition at line 87 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 90 of file image_modifications.hpp.

Referenced by image::load_image_sub_file().


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