![]() |
ImFusion SDK 4.3
|
Inheritance diagram for RobotSolution:Public Types | |
| enum | Status { Success , Failure , InvalidInput } |
Public Member Functions | |
| RobotSolution (float e, Status s) | |
| RobotSolution (Status s) | |
| std::string | domain () const override |
| Returns the category to which the custom error implementation belongs. | |
| int | id () const override |
| Retrieves the unique identifier for the error. | |
| std::string | message () const override |
| Retrieves the error message. | |
Public Member Functions inherited from ErrorInheritanceHelper< RobotSolution > | |
| ~ErrorInheritanceHelper () override=default | |
| Override destructor. | |
| ErrorInheritanceHelper (const ErrorInterface &ei) | |
| std::unique_ptr< RobotSolution > | clone () const & |
| Creates a copy of the current instance. | |
Public Member Functions inherited from ErrorInterface | |
| virtual void | handle () |
| Error handling strategy, allows the user to define a task on the constructor of ErrorFrontEnd. | |
| template<typename T> | |
| operator Utils::Expected< T, ErrorFrontEnd > () const & | |
| Template method for casting to std::expected<T, ErrorFrontEnd>. | |
| std::unique_ptr< ErrorInterface > | clone () const & |
| Creates a copy of the current instance. | |
| bool | operator== (const ErrorFrontEnd &other) const |
| Compares the id and the domain. | |
| bool | operator== (const ErrorInterface &other) const |
| Compares the id and the domain. | |
| virtual ErrorComposition | operator| (const ErrorInterface &input) const |
| Composition operator. | |
Public Attributes | |
| std::optional< float > | error |
| Status | status |
|
inlineoverridevirtual |
Returns the category to which the custom error implementation belongs.
Implements ErrorInterface.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Retrieves the error message.
This method is abstract to force the user to instantiate the error with the correct message.
Implements ErrorInterface.