ErrorBody
class ErrorBody
Represents a body that reports an error when encoded. It can be used with conditional compilation to report errors when certain conditions are met: .error message.
DEFINITION
class ErrorBody;
constructor ErrorBody
DEFINITION
| ErrorBody | ( | const Location & location, | |
| std::string message | ); |
| PARAMETER | DESCRIPTION |
|---|---|
location |
|
message |
method cloneconstvirtual
DEFINITION
| virtual std::shared_ptr< BodyElement > clone | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::shared_ptr< BodyElement > |
method emptyconstvirtual
DEFINITION
| virtual bool empty | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
bool |
method encodeconstvirtual
DEFINITION
| virtual void encode | ( | std::string & bytes, | |
| const Memory * memory | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
bytes |
|
memory |
method evaluatedconstvirtual
DEFINITION
| virtual std::optional< Body > evaluated | ( | const EvaluationContext & context | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
context |
| RETURNS | DESCRIPTION |
|---|---|
std::optional< Body > |
method serializeconstvirtual
DEFINITION
| virtual void serialize | ( | std::ostream & stream, | |
| const std::string & prefix | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
stream |
|
prefix |
member location
DEFINITION
Location location;
member message
DEFINITION
std::string message;