Commit 931607f6 authored by Martin Marinov's avatar Martin Marinov
Browse files

ReForm, QGP: Allow partial success project...

ReForm, QGP: Allow partial success project https://jira.autodesk.com/browse/REFORM-88 QuadMeshExtractorT<> now returns a list of all errors found during extract() instead of immediately throwing. ExportQuadMesh now analyses that list to decide whether to refine or throw. 

[git-p4: depot-paths = "//ReForm/ReForm/main/Base/": change = 13339]
parent 41ae0deb
set(my_headers
${CMAKE_CURRENT_SOURCE_DIR}/DebError.hh
${CMAKE_CURRENT_SOURCE_DIR}/DebOut.hh
${CMAKE_CURRENT_SOURCE_DIR}/DebTime.hh
${CMAKE_CURRENT_SOURCE_DIR}/DebUtils.hh
......
// (C) Copyright 2015 by Autodesk, Inc.
//
// The information contained herein is confidential, proprietary
// to Autodesk, Inc., and considered a trade secret as defined
// in section 499C of the penal code of the State of California.
// Use of this information by anyone other than authorized
// employees of Autodesk, Inc. is granted only under a written
// non-disclosure agreement, expressly prescribing the scope
// and manner of such use.
#ifndef BASE_DEBERROR_HH_INCLUDED
#define BASE_DEBERROR_HH_INCLUDED
#ifdef DEB_ON
#include <Base/Utils/BaseError.hh>
#include <Base/Debug/DebOut.hh>
namespace Debug {
inline Stream& operator<<(Stream& _ds, const Base::Error& _err)
{
_ds << "\"" << _err.message() << "\"";
return _ds;
}
}//namespace Debug
#endif//DEB_ON
#endif//BASE_DEBERROR_HH_INCLUDED
......@@ -48,19 +48,24 @@ struct ErrorExtT : public ErrorT, public ThrowInfo
}//namespace Debug
#define THROW_ERROR_MODULE(MODULE, INDEX) { \
throw Debug::ErrorExtT<MODULE::Error>(MODULE::Error::INDEX, \
Debug::ThrowInfo(#MODULE, __FILE__, __LINE__, __FUNCTION__)); }
#define THROW_ERROR_DEB_MODULE(MODULE, INDEX, EXPR) { \
DEB_error(EXPR); \
throw Debug::ErrorExtT<MODULE::Error>(MODULE::Error::INDEX, \
#define THROW_ERROR_MODULE_VAR(MODULE, VAR) { \
throw Debug::ErrorExtT<MODULE::Error>(VAR, \
Debug::ThrowInfo(#MODULE, __FILE__, __LINE__, __FUNCTION__)); }
#define THROW_ERROR_MODULE(MODULE, INDEX) \
THROW_ERROR_MODULE_VAR(MODULE, MODULE::Error::INDEX)
#define THROW_ERROR_DEB_MODULE(MODULE, INDEX, EXPR) { DEB_error(EXPR); \
THROW_ERROR_MODULE(MODULE, INDEX) }
#else// DEB_ON
#define THROW_ERROR_MODULE_VAR(MODULE, VAR) { throw MODULE::Error(VAR); }
#define THROW_ERROR_MODULE(MODULE, INDEX) \
{ throw MODULE::Error(MODULE::Error::INDEX); }
THROW_ERROR_MODULE_VAR(MODULE::Error::INDEX)
#define THROW_ERROR_DEB_MODULE(MODULE, EXPR) THROW_ERROR_MODULE(MODULE, TODO)
#endif// DEB_ON
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment