|
svMultiPhysics
|
An exception raised when a file cannot be parsed or has an invalid format. More...
#include <Exception.h>
Public Member Functions | |
| FileFormatException (const std::string &file_name, const std::string &message, const char *file="", int line=0, const char *function="") | |
Public Member Functions inherited from svmp::CoreException | |
| CoreException (const std::string &message, StatusCode status=StatusCode::Unknown, const char *file="", int line=0, const char *function="") | |
Public Member Functions inherited from svmp::ExceptionBase | |
| const char * | what () const noexcept override |
| StatusCode | status_code () const noexcept |
| const std::string & | message () const noexcept |
| const ExceptionContext & | context () const noexcept |
| void | add_context (const std::string &context) |
| void | set_source_location (const SourceLocation &location) |
| Record the originating source location and refresh what(). | |
Additional Inherited Members | |
Protected Member Functions inherited from svmp::ExceptionBase | |
| ExceptionBase (std::string message, StatusCode status, std::string_view subsystem_label, const char *file="", int line=0, const char *function="") | |
| void | rebuild_what () |
Protected Attributes inherited from svmp::ExceptionBase | |
| std::string | message_ |
| ExceptionContext | context_ |
| std::string_view | subsystem_label_ |
| std::string | what_ |
An exception raised when a file cannot be parsed or has an invalid format.
Raises a message in the format "Error parsing file <file_name>. <message>", with the file name and a descriptive message provided as constructor arguments.