class TryFromIntError
Declaration
class TryFromIntError { /* full declaration omitted */ };
Description
The error type returned when a checked integral type conversion fails.
Declared at: sus/num/try_from_int_error.h:24
Method Overview
- public constexpr sus::num::TryFromIntError::Kind kind() const noexcept
- public static constexpr sus::num::TryFromIntError with_out_of_bounds() noexcept
Methods
¶constexpr sus::num::TryFromIntError::Kind kind()
const noexcept
constexpr sus::num::TryFromIntError::Kind kind()
const noexcept
Description
Gives the kind of error that occured.
Declared at: sus/num/try_from_int_error.h:35
¶static constexpr sus::num::TryFromIntError
with_out_of_bounds() noexcept
static constexpr sus::num::TryFromIntError
with_out_of_bounds() noexcept
Description
Constructs a TryFromIntError with kind `OutOfBounds`.
Declared at: sus/num/try_from_int_error.h:32