PLSSVM - Parallel Least Squares Support Vector Machine  2.0.0
A Least Squares Support Vector Machine implementation using different backends.
Public Member Functions | Private Attributes | List of all members
plssvm::openmp::backend_exception Class Reference

Exception type thrown if a problem with the OpenMP backend occurs. More...

#include <exceptions.hpp>

Inheritance diagram for plssvm::openmp::backend_exception:
[legend]
Collaboration diagram for plssvm::openmp::backend_exception:
[legend]

Public Member Functions

 backend_exception (const std::string &msg, source_location loc=source_location::current())
 Construct a new exception forwarding the exception message and source location to plssvm::exception. More...
 
const source_locationloc () const noexcept
 Returns the information of the call side where the exception was thrown. More...
 
std::string what_with_loc () const
 Returns a string containing the exception's what() message, the name of the thrown exception class, and information about the call side where the exception has been thrown. More...
 

Private Attributes

std::string_view class_name_
 The name of the thrown exception class.
 
source_location loc_
 The call side source location information.
 

Detailed Description

Exception type thrown if a problem with the OpenMP backend occurs.

Constructor & Destructor Documentation

◆ backend_exception()

plssvm::openmp::backend_exception::backend_exception ( const std::string &  msg,
source_location  loc = source_location::current() 
)
explicit

Construct a new exception forwarding the exception message and source location to plssvm::exception.

Parameters
[in]msgthe exception's what() message
[in]locthe exception's call side information

Member Function Documentation

◆ loc()

const source_location& plssvm::exception::loc ( ) const
noexceptinherited

Returns the information of the call side where the exception was thrown.

Returns
the exception's call side information ([[nodiscard]])

◆ what_with_loc()

std::string plssvm::exception::what_with_loc ( ) const
inherited

Returns a string containing the exception's what() message, the name of the thrown exception class, and information about the call side where the exception has been thrown.

Returns
the exception's what() message including source location information ([[nodiscard]])

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