Inflection
Morphology Inflection
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
inflection::exception::ClassCastException Class Reference

Used to indicate an error casting from one class to other. More...

#include <ClassCastException.hpp>

+ Inheritance diagram for inflection::exception::ClassCastException:

Public Member Functions

 ClassCastException ()
 
 ClassCastException (const std::u16string &message)
 
 ~ClassCastException () override
 
- Public Member Functions inherited from inflection::exception::RuntimeException
 RuntimeException ()
 
 RuntimeException (const std::u16string &message)
 
 ~RuntimeException () override
 
- Public Member Functions inherited from inflection::exception::Exception
 Exception ()
 
 Exception (const std::u16string &message)
 
 ~Exception () override
 
- Public Member Functions inherited from inflection::exception::Throwable
 Throwable ()
 
 Throwable (const std::u16string &message)
 
 ~Throwable () override
 
const char * what () const noexcept override
 
virtual const ::std::u16string & getMessage () const noexcept
 

Static Public Member Functions

template<typename T , typename U >
static T verifyCast (U *u)
 

Detailed Description

Used to indicate an error casting from one class to other.

This is typically thrown during reflection of AttributeImpl.

Definition at line 13 of file ClassCastException.hpp.

Constructor & Destructor Documentation

◆ ClassCastException() [1/2]

inflection::exception::ClassCastException::ClassCastException ( )

Default constructor

◆ ClassCastException() [2/2]

inflection::exception::ClassCastException::ClassCastException ( const std::u16string &  message)
explicit

Construct an exception with an informative message for debugging purposes.

◆ ~ClassCastException()

inflection::exception::ClassCastException::~ClassCastException ( )
override

Destructor

Member Function Documentation

◆ verifyCast()

template<typename T , typename U >
static T inflection::exception::ClassCastException::verifyCast ( U *  u)
inlinestatic

Verifies that a non-null object pointer can be cast to the target type. There is no error if the pointer is null.

Definition at line 27 of file ClassCastException.hpp.


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