AMSmartProperties  201
Core library
Public Member Functions | List of all members
AMSmartProperties::AMPropertyGeneralException Class Reference

Generic functor type for specified type of property. More...

#include <AMProperty.h>

Inheritance diagram for AMSmartProperties::AMPropertyGeneralException:
Inheritance graph
[legend]
Collaboration diagram for AMSmartProperties::AMPropertyGeneralException:
Collaboration graph
[legend]

Public Member Functions

const char * what () const noexcept
 what More...
 
AMPropertyBase * propertyEntered () const noexcept
 propertyEntered More...
 
AMPropertyBase * propertyCaused () const noexcept
 propertyCaused More...
 
std::string trace ()
 Traces a property computation. This function is available after any exception, othervise return "". More...
 

Detailed Description

Generic functor type for specified type of property.

Parameters
TType of property

This exception is not thrown directly. It's a base class.

Member Function Documentation

◆ propertyCaused()

AMPropertyBase* AMSmartProperties::AMPropertyGeneralException::propertyCaused ( ) const
noexcept

propertyCaused

Returns
pointer to property which causes and exception. This a last property in computation hiearchy.

◆ propertyEntered()

AMPropertyBase* AMSmartProperties::AMPropertyGeneralException::propertyEntered ( ) const
noexcept

propertyEntered

Returns
pointer to property which was initiated and which causes and exception. Its not the last property, which really causes an exception. Run trace on this property and you may see list of properties, first is this property, last causes an expetion.

◆ trace()

std::string AMSmartProperties::AMPropertyGeneralException::trace ( )

Traces a property computation. This function is available after any exception, othervise return "".

Returns
std::string with property name (in case of use AMVariableNames) of adress on each line.
Exceptions
Thisfunction will not throw an exception.

◆ what()

const char* AMSmartProperties::AMPropertyGeneralException::what ( ) const
inlinenoexcept

what

Returns
const string with description. Size of this string is not limited.

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