Leosac  0.8.0
Open Source Access Control
ModelException::ModelError Struct Reference

Describes a model error. More...

#include <ModelException.hpp>

+ Collaboration diagram for ModelException::ModelError:

Public Attributes

std::string source_pointer
 The "path" to the source of the error. More...
 
std::string message
 The error message. More...
 

Detailed Description

Describes a model error.

This maps to DS.InvalidError on the client side (EmberJS).

Note
If source_pointer is "data", this means its a global model error, not tied to a specific attribute.

Definition at line 45 of file ModelException.hpp.

Member Data Documentation

◆ message

std::string ModelException::ModelError::message

The error message.

Definition at line 57 of file ModelException.hpp.

◆ source_pointer

std::string ModelException::ModelError::source_pointer

The "path" to the source of the error.

Following JSON API, this is generally something like "data/attributes/AttributeName"

Definition at line 52 of file ModelException.hpp.


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