aligator  0.6.1
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
exceptions.hpp File Reference
#include <stdexcept>
#include <fmt/color.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.
 

Macros

#define ALIGATOR_RUNTIME_ERROR(msg)
 
#define ALIGATOR_DOMAIN_ERROR(msg)    throw std::domain_error(fmt::format("{}({}): {}", __FILE__, __LINE__, msg))
 
#define ALIGATOR_WARNING(loc, msg)
 

Macro Definition Documentation

◆ ALIGATOR_RUNTIME_ERROR

#define ALIGATOR_RUNTIME_ERROR ( msg)
Value:
fmt::format("{}({}): {}", __FILE__, __LINE__, msg))

Definition at line 6 of file exceptions.hpp.

◆ ALIGATOR_DOMAIN_ERROR

#define ALIGATOR_DOMAIN_ERROR ( msg)     throw std::domain_error(fmt::format("{}({}): {}", __FILE__, __LINE__, msg))

Definition at line 10 of file exceptions.hpp.

◆ ALIGATOR_WARNING

#define ALIGATOR_WARNING ( loc,
msg )
Value:
fmt::print(fmt::fg(fmt::color::yellow), "[{}] {}: {}", loc, __FUNCTION__, \
msg);

Definition at line 13 of file exceptions.hpp.