Errors

Exceptions used in the Waf code

exception waflib.Errors.WafError(msg='', ex=None)[source]

Bases: exceptions.Exception

Base class for all Waf errors

__init__(msg='', ex=None)[source]
Parameters:
  • msg (string) – error message
  • ex (exception) – exception causing this error (optional)
exception waflib.Errors.BuildError(error_tasks=[])[source]

Bases: waflib.Errors.WafError

Error raised during the build and install phases

__init__(error_tasks=[])[source]
Parameters:error_tasks (list of task objects) – tasks that could not complete normally
format_error()[source]

Formats the error messages from the tasks that failed

exception waflib.Errors.ConfigurationError(msg='', ex=None)[source]

Bases: waflib.Errors.WafError

Configuration exception raised in particular by waflib.Context.Context.fatal()

exception waflib.Errors.TaskRescan(msg='', ex=None)[source]

Bases: waflib.Errors.WafError

Task-specific exception type signalling required signature recalculations

exception waflib.Errors.TaskNotReady(msg='', ex=None)[source]

Bases: waflib.Errors.WafError

Task-specific exception type signalling that task signatures cannot be computed