svMultiPhysics
Loading...
Searching...
No Matches
Public Member Functions | List of all members
svmp::FE::basis::BasisException Class Reference

Base exception type for errors originating in the Basis module. More...

#include <BasisExceptions.h>

Inheritance diagram for svmp::FE::basis::BasisException:
[legend]

Public Member Functions

 BasisException (const std::string &message, StatusCode status=StatusCode::Unknown)
 
- Public Member Functions inherited from svmp::FE::FEException
 FEException (const std::string &message, StatusCode status=StatusCode::Unknown)
 Construct with a message and optional status code.
 
StatusCode status () const noexcept
 Status code classifying the failure.
 
- 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_
 

Detailed Description

Base exception type for errors originating in the Basis module.

The Basis module raises these basis-specific types – rather than the generic FE exceptions in FEException.h – so a caller can catch a basis failure precisely: an unsupported element/order pairing, a non-unisolvent node set, an out-of-range reference-node index. They all derive from FEException, so code that only wants "some FE error" can still catch the base type, and they carry the same StatusCode and source location as the rest of the hierarchy.


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