aligator  0.10.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
exceptions.hpp File Reference
#include <stdexcept>
#include <string>
#include <fmt/core.h>
Include dependency graph for exceptions.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  aligator::RuntimeError
 

Namespaces

namespace  aligator
 Main package namespace.
 
namespace  aligator::detail
 

Macros

#define ALIGATOR_RUNTIME_ERROR(...)
 
#define ALIGATOR_DOMAIN_ERROR(msg)
 
#define ALIGATOR_WARNING(loc, ...)    ::aligator::detail::warning_call(loc, __FUNCTION__, __VA_ARGS__)
 

Functions

void aligator::detail::warning_impl (const char *loc, const char *fun, fmt::string_view fstr, fmt::format_args args)
 
template<typename... T>
void aligator::detail::warning_call (const char *loc, const char *fun, fmt::format_string< T... > fstr, T &&...args)
 
template<typename T >
void aligator::detail::warning_call (const char *loc, const char *fun, T &&msg)
 
std::string aligator::detail::exception_msg_impl (const char *filename, int lineno, fmt::string_view fstr, fmt::format_args args)
 
template<typename... T>
std::string aligator::detail::exception_msg (const char *filename, int lineno, fmt::format_string< T... > fstr, T &&...args)
 

Macro Definition Documentation

◆ ALIGATOR_RUNTIME_ERROR

#define ALIGATOR_RUNTIME_ERROR ( ...)
Value:
throw ::aligator::RuntimeError( \
::aligator::detail::exception_msg(__FILE__, __LINE__, __VA_ARGS__))
std::string exception_msg(const char *filename, int lineno, fmt::format_string< T... > fstr, T &&...args)

Definition at line 7 of file exceptions.hpp.

◆ ALIGATOR_DOMAIN_ERROR

#define ALIGATOR_DOMAIN_ERROR ( msg)
Value:
throw std::domain_error( \
::aligator::detail::exception_msg(__FILE__, __LINE__, msg))

Definition at line 11 of file exceptions.hpp.

◆ ALIGATOR_WARNING

#define ALIGATOR_WARNING ( loc,
... )    ::aligator::detail::warning_call(loc, __FUNCTION__, __VA_ARGS__)

Definition at line 15 of file exceptions.hpp.