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::gpu_device_ptr_exception Class Reference

Exception type thrown if an error in the generic plssvm::detail::gpu_device_ptr occurred. More...

#include <exceptions.hpp>

Inheritance diagram for plssvm::gpu_device_ptr_exception:
[legend]
Collaboration diagram for plssvm::gpu_device_ptr_exception:
[legend]

Public Member Functions

 gpu_device_ptr_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 an error in the generic plssvm::detail::gpu_device_ptr occurred.

Constructor & Destructor Documentation

◆ gpu_device_ptr_exception()

plssvm::gpu_device_ptr_exception::gpu_device_ptr_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: