Skip to main content
The return state / error value of a Project function call. #include "Error.hpp"

Public Member Functions

Detailed Description

The return state / error value of a Project function call. The Error object gathers the ok or error state of a project function call. If there is no error ok() returns true. A ok state might provide information (getInfo()) or warning (getWarning()) messages. If there is an error ( ok() returns false ) there is at least one error message.

Constructor & Destructor Documentation

Error() [1/2]

Constructor, OK state.

Error() [2/2]

Constructor, Error state with error message.

Member Function Documentation

addError()

Add one error to the object.

addInfo()

Add one info mesage to the object (a OK state is still OK)

addWarning()

Add one warning to the object (a OK state is still OK)

getAllString()

All messages as a single string. Each type of messages as a separate line prefixed by the appropriate type ( Error: , Warning: , Information )

getErrors()

All errors as a string vector. Empty if ok()

getErrorsString()

All errors as a single string. All errors as a single string, with separate lines for each error. Empty string if ok()

getInfos()

All info messages as a string vector.

getWarnings()

All warnings as a string vector.

ok()

True if no error message. If false, there is at least one error message. If true, there might be information or warning messages

operator()()

Equivalent to ok()

operator+=()

Appends all info/warning/error states.