PLSSVM - Parallel Least Squares Support Vector Machine  2.0.0
A Least Squares Support Vector Machine implementation using different backends.
exceptions.hpp
Go to the documentation of this file.
1 
12 #ifndef PLSSVM_BACKENDS_OPENMP_EXCEPTIONS_HPP_
13 #define PLSSVM_BACKENDS_OPENMP_EXCEPTIONS_HPP_
14 #pragma once
15 
16 #include "plssvm/exceptions/exceptions.hpp" // plssvm::exception
17 #include "plssvm/exceptions/source_location.hpp" // plssvm::source_location
18 
19 #include <string> // std::string
20 
21 namespace plssvm::openmp {
22 
26 class backend_exception : public exception {
27  public:
33  explicit backend_exception(const std::string &msg, source_location loc = source_location::current());
34 };
35 
36 } // namespace plssvm::openmp
37 
38 #endif // PLSSVM_BACKENDS_OPENMP_EXCEPTIONS_HPP_
Base class for all custom exception types. Forwards its message to std::runtime_error and saves the e...
Definition: exceptions.hpp:29
const source_location & loc() const noexcept
Returns the information of the call side where the exception was thrown.
Exception type thrown if a problem with the OpenMP backend occurs.
Definition: exceptions.hpp:26
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.
The plssvm::source_location class represents certain information about the source code,...
Definition: source_location.hpp:25
static constexpr source_location current(const char *file_name=__builtin_FILE(), const char *function_name=__builtin_FUNCTION(), int line=__builtin_LINE(), int column=0) noexcept
Construct new source location information about the current call side.
Definition: source_location.hpp:35
Implements custom exception classes derived from std::runtime_error including source location informa...
Namespace containing the C-SVM using the OpenMP backend.
Definition: csvm.hpp:27
Implements a custom std::source_location implementation for C++17.