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::sycl::backend_exception Class Reference

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

#include <exceptions.hpp>

Inheritance diagram for plssvm::sycl::backend_exception:
[legend]
Collaboration diagram for plssvm::sycl::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...
 
 backend_exception (const std::string &msg, std::string_view class_name, 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 SYCL backend occurs.

Constructor & Destructor Documentation

◆ backend_exception() [1/2]

plssvm::sycl::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

◆ backend_exception() [2/2]

plssvm::sycl::backend_exception::backend_exception ( const std::string &  msg,
std::string_view  class_name,
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]class_namethe name of the thrown exception class
[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: