Makeprojects
Loading...
Searching...
No Matches
makeprojects.build_objects.BuildError Class Reference

Error message generated by builders. More...

Public Member Functions

 __init__ (self, error, filename, configuration=None, msg=None)
 Initializers for an BuildError.
 get_error_code (self)
 Return the integer error code.
 __repr__ (self)
 Convert the error into a string.
 __str__ (self)
 Convert the error into a string.

Public Attributes

 error = error
 Integer error code.
 filename = filename
 File name that generated the error.
 configuration = configuration
 Build configuration.
 msg = msg
 Error message.

Detailed Description

Error message generated by builders.

When a builder completes, a BuildError class is created and appended to the results list for logging.

Constructor & Destructor Documentation

◆ __init__()

makeprojects.build_objects.BuildError.__init__ ( self,
error,
filename,
configuration = None,
msg = None )

Initializers for an BuildError.

Parameters
errorInteger error code, zero if not error
filenameFile that generated the error
configurationIf applicable, configuration that was compiled
msgError message test, if available

Member Function Documentation

◆ __repr__()

makeprojects.build_objects.BuildError.__repr__ ( self)

Convert the error into a string.

Returns
A full error string.

◆ __str__()

makeprojects.build_objects.BuildError.__str__ ( self)

Convert the error into a string.

Returns
A full error string.

◆ get_error_code()

makeprojects.build_objects.BuildError.get_error_code ( self)

Return the integer error code.

Returns
The integer error code.