3.0.0
Freundlich's C++ toolkit
Public Member Functions
fcppt::cast::bad_truncation_check Class Reference

Detailed Description

May be thrown by fcppt::cast::truncation_check if the conversion truncates.

This class provides type information about the source and the destination types, stored as std::type_index.

See also
fcppt::truncation_check_cast
Inheritance diagram for fcppt::cast::bad_truncation_check:
fcppt::exception

Public Member Functions

FCPPT_DETAIL_SYMBOL bad_truncation_check (fcppt::string &&source_value, std::type_index const &source, std::type_index const &dest)
 Constructs a bad_truncation_check_cast exception. More...
 
FCPPT_DETAIL_SYMBOL bad_truncation_check (bad_truncation_check const &)
 
FCPPT_DETAIL_SYMBOL bad_truncation_check (bad_truncation_check &&)
 
FCPPT_DETAIL_SYMBOL bad_truncation_checkoperator= (bad_truncation_check const &)
 
FCPPT_DETAIL_SYMBOL bad_truncation_checkoperator= (bad_truncation_check &&)
 
FCPPT_DETAIL_SYMBOL ~bad_truncation_check () noexcept override
 
FCPPT_DETAIL_SYMBOL std::type_index const & source () const
 Returns the source type information. More...
 
FCPPT_DETAIL_SYMBOL std::type_index const & destination () const
 Returns the destination type information. More...
 
- Public Member Functions inherited from fcppt::exception
FCPPT_DETAIL_SYMBOL exception (fcppt::string &&what)
 Constructs an exception from a string. More...
 
FCPPT_DETAIL_SYMBOL exception (exception const &)
 
FCPPT_DETAIL_SYMBOL exception (exception &&)
 
fcppt::string const & string () const
 Returns the error message. More...
 
FCPPT_DETAIL_SYMBOL char const * what () const noexcept override
 Returns a generic error. More...
 
FCPPT_DETAIL_SYMBOL ~exception () noexcept override
 

Additional Inherited Members

- Public Attributes inherited from fcppt::exception
FCPPT_DETAIL_SYMBOL exception operator
 

Constructor & Destructor Documentation

◆ bad_truncation_check() [1/3]

FCPPT_DETAIL_SYMBOL fcppt::cast::bad_truncation_check::bad_truncation_check ( fcppt::string &&  source_value,
std::type_index const &  source,
std::type_index const &  dest 
)

Constructs a bad_truncation_check_cast exception.

Parameters
source_valueThe value to cast from
sourceThe source type information
destThe destination type information

◆ bad_truncation_check() [2/3]

FCPPT_DETAIL_SYMBOL fcppt::cast::bad_truncation_check::bad_truncation_check ( bad_truncation_check const &  )

◆ bad_truncation_check() [3/3]

FCPPT_DETAIL_SYMBOL fcppt::cast::bad_truncation_check::bad_truncation_check ( bad_truncation_check &&  )

◆ ~bad_truncation_check()

FCPPT_DETAIL_SYMBOL fcppt::cast::bad_truncation_check::~bad_truncation_check ( )
overridenoexcept

Member Function Documentation

◆ destination()

FCPPT_DETAIL_SYMBOL std::type_index const& fcppt::cast::bad_truncation_check::destination ( ) const

Returns the destination type information.

◆ operator=() [1/2]

◆ operator=() [2/2]

◆ source()

FCPPT_DETAIL_SYMBOL std::type_index const& fcppt::cast::bad_truncation_check::source ( ) const

Returns the source type information.