#ifndef _EXCEPTIONS_H
#define _EXCEPTIONS_H

#pragma message("'foundation/Exceptions.h' is deprecated. Use std::exception and its subclasses instead. ")

#if (defined(TN_PLATFORM_WINPHONE) || defined(TN_PLATFORM_WINRT))
#include <exception>
namespace Tn
{
    namespace Foundation
    {
        using std::exception;

#define EXCEPTION_INFO(e) (e).what()
#define EXCEPTION_CODE(e) 0
    }
}

#else
#include <boost/thread/exceptions.hpp>
namespace Tn 
{
    namespace Foundation 
    {
        typedef boost::thread_exception exception;

#define EXCEPTION_INFO(e) (e).what()
#define EXCEPTION_CODE(e) (e).native_error()
    }
}

#endif    // !(defined(TN_PLATFORM_WINPHONE) || defined(TN_PLATFORM_WINRT))

#endif    //!_EXCEPTIONS_H
