![]() |
|
UsdValidationError is an entity returned by a validation task, which is associated with a UsdValidator. More...
#include <validationError.h>
Public Member Functions | |
| USD_API | UsdValidationError () |
| A default constructed UsdValidationError signifies no error. | |
| USD_API | UsdValidationError (const UsdValidationErrorType &errorType, const UsdValidationErrorSites &errorSites, const std::string &errorMsg) |
Instantiate a ValidationError by providing its errorType, errorSites and an errorMsg. | |
| bool | operator== (const UsdValidationError &other) const |
| bool | operator!= (const UsdValidationError &other) const |
| UsdValidationErrorType | GetType () const |
| Returns the UsdValidationErrorType associated with this UsdValidationError. | |
| const UsdValidationErrorSites & | GetSites () const |
| Returns the UsdValidationErrorSite associated with this UsdValidationError. | |
| const UsdValidator * | GetValidator () const |
| Returns the UsdValidator that reported this error. | |
| const std::string & | GetMessage () const |
| Returns the message associated with this UsdValidationError. | |
| USD_API std::string | GetErrorAsString () const |
| Returns UsdValidationErrorType and ErrorMessage concatenated as a string. | |
| bool | HasNoError () const |
| Returns true if UsdValidationErrorType is UsdValidationErrorType::None, false otherwise. | |
Friends | |
| class | UsdValidator |
UsdValidationError is an entity returned by a validation task, which is associated with a UsdValidator.
A UsdValidationError instance contains important information, like:
UsdValidationError instances will be stored in the UsdValidationContext responsible for executing a set of UsdValidators.
Definition at line 217 of file validationError.h.
| USD_API UsdValidationError | ( | ) |
A default constructed UsdValidationError signifies no error.
| USD_API UsdValidationError | ( | const UsdValidationErrorType & | errorType, |
| const UsdValidationErrorSites & | errorSites, | ||
| const std::string & | errorMsg | ||
| ) |
Instantiate a ValidationError by providing its errorType, errorSites and an errorMsg.
| USD_API std::string GetErrorAsString | ( | ) | const |
Returns UsdValidationErrorType and ErrorMessage concatenated as a string.
|
inline |
Returns the message associated with this UsdValidationError.
Definition at line 266 of file validationError.h.
|
inline |
Returns the UsdValidationErrorSite associated with this UsdValidationError.
Definition at line 250 of file validationError.h.
|
inline |
Returns the UsdValidationErrorType associated with this UsdValidationError.
Definition at line 243 of file validationError.h.
|
inline |
Returns the UsdValidator that reported this error.
This will return nullptr if there is no UsdValidator associated with this error. This will never be nullptr for validation errors returned from calls to UsdValidator::Validate.
Definition at line 260 of file validationError.h.
|
inline |
Returns true if UsdValidationErrorType is UsdValidationErrorType::None, false otherwise.
Definition at line 277 of file validationError.h.
|
inline |
Definition at line 237 of file validationError.h.
|
inline |
Definition at line 230 of file validationError.h.
|
friend |
Definition at line 284 of file validationError.h.