svMultiPhysics
Loading...
Searching...
No Matches
svmp::FE::FEException Class Reference

Base exception type for errors originating in the FE library. More...

#include <FEException.h>

Inheritance diagram for svmp::FE::FEException:
[legend]

Public Member Functions

 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 FE library.

Carries a status code and source location alongside the message. Derived classes select an appropriate StatusCode and may attach additional structured context.

Constructor & Destructor Documentation

◆ FEException()

svmp::FE::FEException::FEException ( const std::string & message,
StatusCode status = StatusCode::Unknown )
inlineexplicit

Construct with a message and optional status code.

Parameters
messageHuman-readable error description.
statusStatus code classifying the failure.

The source location is stamped by svmp::raise(); construct FE exceptions through the core helpers rather than passing file/line/function.

Member Function Documentation

◆ status()

StatusCode svmp::FE::FEException::status ( ) const
inlinenoexcept

Status code classifying the failure.

Returns
The status code recorded at construction.

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