//
// Copyright (c) 2009 Froduald Kabanza and the Université de Sherbrooke.
// Use of this software is permitted for non-commercial research purposes, and
// it may be copied or applied only for that use. All copies must include this
// copyright message.
// 
// This is a research prototype that has not gone through intensive tests and
// is delivered as is. It may still contain bugs. Froduald Kabanza and the
// Université de Sherbrooke disclaim any responsibility for damage that may be
// caused by using it.
// 
// Implementation: Simon Chamberland
// Project Manager: Froduald Kabanza
//

#ifndef _BINDING_EXCEPTION_H
#define _BINDING_EXCEPTION_H

#include <stdexcept>

namespace planning
{
  class ObjectParameterVariable;

  /// <summary>
  /// A BindingException is thrown if an attempt is made to set to retrieve the value of
  /// an unbound variable.
  /// </summary>
  class BindingException : public std::invalid_argument
  {
  public:
    BindingException(const ObjectParameterVariable* cause);

    const ObjectParameterVariable* getCause() const;

  private:
    const ObjectParameterVariable* m_cause;
  };
}

#endif