Functions
sdf::SDF_VERSION_NAMESPACE::internal Namespace Reference

Internal namespace. More...

Functions

void GZ_SDFORMAT_VISIBLE throwOrPrintError (sdf::Console::ConsoleStream &_out, const sdf::Error &_error)
 Prints the error to _out or throw using SDF_ASSERT depending on the ErrorCode in _error. More...
 

Detailed Description

Internal namespace.

Functions and classes defined in this namespace are for internal use only and maybe removed without a deprecation cycle.

Function Documentation

◆ throwOrPrintError()

void GZ_SDFORMAT_VISIBLE sdf::SDF_VERSION_NAMESPACE::internal::throwOrPrintError ( sdf::Console::ConsoleStream &  _out,
const sdf::Error _error 
)

Prints the error to _out or throw using SDF_ASSERT depending on the ErrorCode in _error.

Parameters
[out]_outostream to use for printing errors.
[in]_error_error The error object to be printed

Referenced by sdf::SDF_VERSION_NAMESPACE::Element::Get(), and sdf::SDF_VERSION_NAMESPACE::Element::Set().