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)
__doc__ = 'Base class for all Waf errors'
__module__ = 'waflib.Errors'
exception waflib.Errors.BuildError(error_tasks=[])[source]

Bases: waflib.Errors.WafError

Errors 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]

format the error messages from the tasks that failed

__doc__ = '\n\tErrors raised during the build and install phases\n\t'
__module__ = 'waflib.Errors'
exception waflib.Errors.ConfigurationError(msg='', ex=None)[source]

Bases: waflib.Errors.WafError

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

__doc__ = '\n\tConfiguration exception raised in particular by :py:meth:`waflib.Context.Context.fatal`\n\t'
__module__ = 'waflib.Errors'
exception waflib.Errors.TaskRescan(msg='', ex=None)[source]

Bases: waflib.Errors.WafError

task-specific exception type, trigger a signature recomputation

__doc__ = 'task-specific exception type, trigger a signature recomputation'
__module__ = 'waflib.Errors'
exception waflib.Errors.TaskNotReady(msg='', ex=None)[source]

Bases: waflib.Errors.WafError

task-specific exception type, raised when the task signature cannot be computed

__doc__ = 'task-specific exception type, raised when the task signature cannot be computed'
__module__ = 'waflib.Errors'