#include <image_load_error.hpp>
Definition at line 13 of file image_load_error.hpp.
◆ Type
| Enumerator |
|---|
| file_not_found | |
| unsupported_channel_count | |
| other_load_error | |
Definition at line 15 of file image_load_error.hpp.
◆ ImageLoadError()
◆ clone()
| std::unique_ptr< Error > porytiles::ImageLoadError::clone |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ details()
| std::vector< std::string > porytiles::ImageLoadError::details |
( |
const TextFormatter & |
formatter | ) |
const |
|
inlineoverridevirtual |
Returns a formatted multi-line string representation of the error.
Each element in the returned vector represents one line of the error message. The TextFormatter controls whether ANSI styling codes are included based on TTY status.
- Parameters
-
| formatter | The TextFormatter to use for conditional formatting based on TTY status |
- Returns
- A vector of formatted strings describing the error, one per line
Implements porytiles::Error.
Definition at line 59 of file image_load_error.hpp.
◆ file_not_found()
| static ImageLoadError porytiles::ImageLoadError::file_not_found |
( |
const std::string & |
filename | ) |
|
|
inlinestatic |
◆ filename()
| const std::string & porytiles::ImageLoadError::filename |
( |
| ) |
const |
|
inline |
◆ other_load_error()
| static ImageLoadError porytiles::ImageLoadError::other_load_error |
( |
const std::string & |
filename, |
|
|
const std::string & |
error_msg |
|
) |
| |
|
inlinestatic |
◆ params()
◆ type()
| Type porytiles::ImageLoadError::type |
( |
| ) |
const |
|
inline |
◆ unsupported_channel_count()
| static ImageLoadError porytiles::ImageLoadError::unsupported_channel_count |
( |
const std::string & |
filename, |
|
|
int |
channel_count |
|
) |
| |
|
inlinestatic |
The documentation for this class was generated from the following file: