xlnt
Public Member Functions | List of all members
xlnt::exception Class Reference

Parent type of all custom exceptions thrown in this library. More...

#include <exceptions.hpp>

Inheritance diagram for xlnt::exception:
xlnt::illegal_character xlnt::invalid_attribute xlnt::invalid_cell_reference xlnt::invalid_column_index xlnt::invalid_data_type xlnt::invalid_file xlnt::invalid_parameter xlnt::invalid_sheet_title xlnt::key_not_found xlnt::no_visible_worksheets xlnt::unhandled_switch_case xlnt::unsupported

Public Member Functions

 exception (const std::string &message)
 Constructs an exception with a message. This message will be returned by std::exception::what(), an inherited member of this class. More...
 
 exception (const exception &)=default
 Default copy constructor. More...
 
 ~exception () override
 Destructor More...
 
void message (const std::string &message)
 Sets the message after the xlnt::exception is constructed. This can show more specific information than std::exception::what(). More...
 
std::string message ()
 Gets the message containing extra information. More...
 

Detailed Description

Parent type of all custom exceptions thrown in this library.

Constructor & Destructor Documentation

◆ exception() [1/2]

xlnt::exception::exception ( const std::string &  message)
explicit

Constructs an exception with a message. This message will be returned by std::exception::what(), an inherited member of this class.

◆ exception() [2/2]

xlnt::exception::exception ( const exception )
default

Default copy constructor.

◆ ~exception()

xlnt::exception::~exception ( )
override

Destructor

Member Function Documentation

◆ message() [1/2]

void xlnt::exception::message ( const std::string &  message)

Sets the message after the xlnt::exception is constructed. This can show more specific information than std::exception::what().

◆ message() [2/2]

std::string xlnt::exception::message ( )

Gets the message containing extra information.


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