11#ifndef EBGEOMETRY_PARSEERROR_HPP
12#define EBGEOMETRY_PARSEERROR_HPP
37 ParseError(
const std::string& a_file,
const std::size_t a_line,
const std::string& a_reason)
38 : std::runtime_error(a_file + (a_line > 0 ?
":" + std::to_string(a_line) : std::string()) +
": " + a_reason),
48 [[nodiscard]]
const std::string&
58 [[nodiscard]] std::size_t
68 [[nodiscard]]
const std::string&
Thrown by the file readers, and by PolygonSoup::clean() and convertToDCEL(), when a file cannot be re...
Definition EBGeometry_ParseError.hpp:29
const std::string & reason() const noexcept
What is wrong.
Definition EBGeometry_ParseError.hpp:69
ParseError(const std::string &a_file, const std::size_t a_line, const std::string &a_reason)
Constructor.
Definition EBGeometry_ParseError.hpp:37
std::size_t line() const noexcept
Line where the problem was found.
Definition EBGeometry_ParseError.hpp:59
const std::string & file() const noexcept
File being read.
Definition EBGeometry_ParseError.hpp:49
OnDefect
What a file reader does with a mesh whose faces do not form a clean, closed surface.
Definition EBGeometry_ParseError.hpp:89
@ Warn
Print a warning to std::cerr and load the mesh anyway.
@ Throw
Throw a ParseError naming the defect. The default.
Namespace containing all of EBGeometry's functionality.
Definition EBGeometry_Affine.hpp:26