Boost logo

Boost-Commit :

From: ghost_at_[hidden]
Date: 2007-10-10 05:28:24


Author: vladimir_prus
Date: 2007-10-10 05:28:23 EDT (Wed, 10 Oct 2007)
New Revision: 39880
URL: http://svn.boost.org/trac/boost/changeset/39880

Log:
Placeholder for the errors handling module
Added:
   branches/BOOST_BUILD_PYTHON/boost/tools/build/v2/python/boost/build/build/errors.py (contents, props changed)

Added: branches/BOOST_BUILD_PYTHON/boost/tools/build/v2/python/boost/build/build/errors.py
==============================================================================
--- (empty file)
+++ branches/BOOST_BUILD_PYTHON/boost/tools/build/v2/python/boost/build/build/errors.py 2007-10-10 05:28:23 EDT (Wed, 10 Oct 2007)
@@ -0,0 +1,22 @@
+# Status: being written afresh by Vladimir Prus
+
+# Copyright 2007 Vladimir Prus
+# Distributed under the Boost Software License, Version 1.0.
+# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
+
+# This file is supposed to implement error reporting for Boost.Build.
+# Experience with jam version has shown that printing full backtrace
+# on each error is buffling. Further, for errors printed after parsing --
+# during target building, the stacktrace does not even mention what
+# target is being built.
+
+# This module implements explicit contexts -- where other code can
+# communicate which projects/targets are being built, and error
+# messages will show those contexts. For programming errors,
+# Python assertions are to be used.
+
+class Errors:
+
+ def __call__(self, message):
+ # FIXME: add 'error' to each line.
+ raise Exception(message)


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk