EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
Loading...
Searching...
No Matches
Public Member Functions | List of all members
EBGeometry::Language::Error Class Reference

What reading a model throws when it has errors: every error found (not only the first), and the warnings. More...

#include <EBGeometry_LanguageSyntax.hpp>

Inheritance diagram for EBGeometry::Language::Error:
Inheritance graph
[legend]
Collaboration diagram for EBGeometry::Language::Error:
Collaboration graph
[legend]

Public Member Functions

 Error (std::vector< Diagnostic > a_diagnostics)
 Error with its diagnostics.
 
 Error (const Span &a_span, const std::string &a_message)
 One error at a span.
 
const std::vector< Diagnostic > & diagnostics () const noexcept
 The diagnostics, errors first.
 

Detailed Description

What reading a model throws when it has errors: every error found (not only the first), and the warnings.

what() is every diagnostic, one per line, errors first.

Constructor & Destructor Documentation

◆ Error() [1/2]

EBGeometry::Language::Error::Error ( std::vector< Diagnostic >  a_diagnostics)
inlineexplicit

Error with its diagnostics.

Parameters
[in]a_diagnosticsThe diagnostics, at least one an error.

◆ Error() [2/2]

EBGeometry::Language::Error::Error ( const Span &  a_span,
const std::string &  a_message 
)
inline

One error at a span.

Parameters
[in]a_spanWhere.
[in]a_messageWhat.

Member Function Documentation

◆ diagnostics()

const std::vector< Diagnostic > & EBGeometry::Language::Error::diagnostics ( ) const
inlinenoexcept

The diagnostics, errors first.

Returns
The diagnostics.

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