This commit is contained in:
Thomas Nagy 2016-06-24 13:31:06 +02:00
parent 63a29dfd18
commit 21e9be8cdb
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
2 changed files with 6 additions and 10 deletions

View File

@ -6,7 +6,7 @@
ConfigSet: a special dict
The values put in :py:class:`ConfigSet` must be lists
The values put in :py:class:`ConfigSet` must be serializable (dicts, lists, strings)
"""
import copy, re, os

View File

@ -35,9 +35,7 @@ class WafError(Exception):
return str(self.msg)
class BuildError(WafError):
"""
Errors raised during the build and install phases
"""
"""Error raised during the build and install phases"""
def __init__(self, error_tasks=[]):
"""
:param error_tasks: tasks that could not complete normally
@ -47,7 +45,7 @@ class BuildError(WafError):
WafError.__init__(self, self.format_error())
def format_error(self):
"""format the error messages from the tasks that failed"""
"""Formats the error messages from the tasks that failed"""
lst = ['Build failed']
for tsk in self.tasks:
txt = tsk.format_error()
@ -55,16 +53,14 @@ class BuildError(WafError):
return '\n'.join(lst)
class ConfigurationError(WafError):
"""
Configuration exception raised in particular by :py:meth:`waflib.Context.Context.fatal`
"""
"""Configuration exception raised in particular by :py:meth:`waflib.Context.Context.fatal`"""
pass
class TaskRescan(WafError):
"""task-specific exception type, trigger a signature recomputation"""
"""Task-specific exception type signalling required signature recalculations"""
pass
class TaskNotReady(WafError):
"""task-specific exception type, raised when the task signature cannot be computed"""
"""Task-specific exception type signalling that task signatures cannot be computed"""
pass