IpException.hpp File Reference

#include "IpUtils.hpp"
#include "IpJournalist.hpp"

Go to the source code of this file.

Namespaces

namespace  Ipopt

Classes

class  IpoptException
 This is the base class for all exceptions. More...

Defines

#define THROW_EXCEPTION(__except_type, __msg)   throw __except_type( (__msg), (__FILE__), (__LINE__) );
#define ASSERT_EXCEPTION(__condition, __except_type, __msg)
#define DECLARE_STD_EXCEPTION(__except_type)


Define Documentation

#define ASSERT_EXCEPTION ( __condition,
__except_type,
__msg   ) 

Value:

if (! (__condition) ) { \
    std::string newmsg = #__condition; \
    newmsg += " evaluated false: "; \
    newmsg += __msg; \
    throw __except_type( (newmsg), (__FILE__), (__LINE__) ); \
  }

Referenced by RegisteredOptions::AddBoundedIntegerOption(), RegisteredOptions::AddBoundedNumberOption(), RegisteredOptions::AddIntegerOption(), RegisteredOptions::AddLowerBoundedIntegerOption(), RegisteredOptions::AddLowerBoundedNumberOption(), RegisteredOptions::AddNumberOption(), RegisteredOptions::AddStringOption(), RegisteredOptions::AddStringOption1(), RegisteredOptions::AddStringOption2(), RegisteredOptions::AddStringOption3(), RegisteredOptions::AddStringOption4(), RegisteredOptions::AddStringOption5(), RegisteredOptions::AddStringOption6(), RegisteredOptions::AddStringOption7(), RegisteredOptions::AddUpperBoundedIntegerOption(), RegisteredOptions::AddUpperBoundedNumberOption(), OrigIpoptNLP::c(), TNLPAdapter::CheckDerivatives(), OrigIpoptNLP::d(), OrigIpoptNLP::f(), TNLPAdapter::GetSpaces(), OrigIpoptNLP::grad_f(), OrigIpoptNLP::h(), TSymLinearSolver::InitializeImpl(), StdAugSystemSolver::InitializeImpl(), PDFullSpaceSolver::InitializeImpl(), IpoptAlgorithm::InitializeImpl(), FilterLSAcceptor::InitializeImpl(), OrigIpoptNLP::InitializeStructures(), OrigIpoptNLP::jac_c(), OrigIpoptNLP::jac_d(), RegisteredOption::MapStringSettingToEnum(), TNLPAdapter::ProcessOptions(), OptionsList::ReadFromStream(), IpoptApplication::ReOptimizeNLP(), IpoptApplication::ReOptimizeTNLP(), PDFullSpaceSolver::Solve(), StdInterfaceTNLP::StdInterfaceTNLP(), TNLPAdapter::TNLPAdapter(), and LimMemQuasiNewtonUpdater::UpdateHessian().

#define DECLARE_STD_EXCEPTION ( __except_type   ) 

Value:

class __except_type : public IpoptException \
    { \
    public: \
      __except_type(std::string msg, std::string fname, Index line) \
    : IpoptException(msg,fname,line, #__except_type) {} \
      __except_type(const __except_type& copy) \
    : IpoptException(copy) {} \
    private: \
       __except_type(); \
       void operator=(const __except_type&); \
    }

#define THROW_EXCEPTION ( __except_type,
__msg   )     throw __except_type( (__msg), (__FILE__), (__LINE__) );


Generated on Fri Sep 26 07:44:21 2008 for SimTKcore by  doxygen 1.5.6