Wraps multiple errors into one component.
More...
#include <fcml_errors.hpp>
Wraps multiple errors into one component.
- Since
- 1.1.0
◆ ErrorContainer()
fcml::ErrorContainer::ErrorContainer |
( |
| ) |
|
|
inline |
Default constructor.
- Since
- 1.1.0
◆ addErrorInfo()
void fcml::ErrorContainer::addErrorInfo |
( |
const ErrorInfo & |
errorInfo | ) |
|
|
inline |
Adds a new error into the container.
- Parameters
-
errorInfo | The new error to add. |
- Since
- 1.1.0
◆ clean()
void fcml::ErrorContainer::clean |
( |
| ) |
|
|
inline |
Cleans all errors and warnings.
- Since
- 1.1.0
◆ getFirstError() [1/2]
const ErrorInfo& fcml::ErrorContainer::getFirstError |
( |
| ) |
const |
|
inline |
Returns the first error from the container.
- Returns
- The first error.
- Exceptions
-
- Since
- 1.1.0
◆ getFirstError() [2/2]
ErrorInfo& fcml::ErrorContainer::getFirstError |
( |
| ) |
|
|
inline |
Returns the first error from the container.
- Returns
- The first error.
- Exceptions
-
- Since
- 1.1.0
◆ getFirstErrorMessage()
fcml_cstring fcml::ErrorContainer::getFirstErrorMessage |
( |
| ) |
const |
|
inline |
Returns the first error message from the container.
- Returns
- The first error message.
- Since
- 1.1.0
◆ getSize()
fcml_usize fcml::ErrorContainer::getSize |
( |
| ) |
const |
|
inline |
Gets number of errors in the container.
- Returns
- The number of errors.
- Since
- 1.1.0
◆ isEmpty()
bool fcml::ErrorContainer::isEmpty |
( |
| ) |
const |
|
inline |
Gets true if there is any error or warning in the container.
- Returns
- True if there is any error or warning in the container.
- Since
- 1.1.0
◆ isError()
bool fcml::ErrorContainer::isError |
( |
| ) |
const |
|
inline |
Returns true if there is any error in the container.
- Returns
- True if there is any error in the container.
- Since
- 1.1.0
◆ isWarn()
bool fcml::ErrorContainer::isWarn |
( |
| ) |
const |
|
inline |
Returns true if there is any warning in the container.
- Returns
- True if there is any warning in the container.
- Since
- 1.1.0
◆ operator[]() [1/2]
const ErrorInfo& fcml::ErrorContainer::operator[] |
( |
fcml_usize |
index | ) |
const |
|
inline |
Gets an error at given index.
- Parameters
-
- Returns
- The error at given index.
- Exceptions
-
- Since
- 1.1.0
◆ operator[]() [2/2]
ErrorInfo& fcml::ErrorContainer::operator[] |
( |
fcml_usize |
index | ) |
|
|
inline |
Gets an error at given index.
- Parameters
-
- Returns
- The error at given index.
- Since
- 1.1.0
◆ prepareErrorMessage()
Prepares an error message basing on the first error in the container.
- Parameters
-
message | A prefix for the destination error message. |
- Returns
- Error message.
- Since
- 1.1.0
The documentation for this class was generated from the following file: