KNarrow::NarrowingError Struct

struct KNarrow::NarrowingError

Exception type for narrowing errors. More...

Header: #include <knarrow.h>
CMake: find_package(KF6 REQUIRED COMPONENTS CoreAddons)
target_link_libraries(mytarget PRIVATE KF6::CoreAddons)

Public Functions

KNarrow::NarrowingErrorType type() const

Reimplemented Public Functions

virtual const char *what() const override

Detailed Description

Member Function Documentation

[noexcept] KNarrow::NarrowingErrorType NarrowingError::type() const

Returns the type of narrowing error that occurred

[override virtual noexcept] const char *NarrowingError::what() const

Returns a human-readable description of the narrowing error