3aa208ad32f15d0dbb2b0b52762c221465d5ce0a
12 Exception::Exception ()
16 Exception::Exception ( const string
& message
)
21 Exception::Exception ( const char* format
,
27 Message
= ssvprintf ( format
,
32 void Exception::SetMessage ( const char* message
,
35 Message
= ssvprintf ( message
,
40 OutOfMemoryException::OutOfMemoryException ()
41 : Exception ( "Out of memory" )
46 InvalidOperationException::InvalidOperationException ( const char* filename
,
47 const int linenumber
)
49 Message
= ssprintf ( "%s:%d",
54 InvalidOperationException::InvalidOperationException ( const char* filename
,
63 errorMessage
= ssvprintf ( message
,
66 Message
= ssprintf ( "%s:%d %s",
69 errorMessage
.c_str () );
73 FileNotFoundException::FileNotFoundException ( const string
& filename
)
74 : Exception ( "File '%s' not found.",
81 AccessDeniedException::AccessDeniedException ( const string
& filename
)
82 : Exception ( "Access denied to file '%s'.",
89 InvalidBuildFileException::InvalidBuildFileException ( const string
& location
,
96 SetLocationMessage ( location
, message
, args
);
100 InvalidBuildFileException::InvalidBuildFileException ()
105 InvalidBuildFileException::SetLocationMessage ( const std::string
& location
,
109 Message
= location
+ ": " + ssvprintf ( message
, args
);
112 XMLSyntaxErrorException::XMLSyntaxErrorException ( const string
& location
,
119 SetLocationMessage ( location
, message
, args
);
124 RequiredAttributeNotFoundException::RequiredAttributeNotFoundException (
125 const string
& location
,
126 const string
& attributeName
,
127 const string
& elementName
)
128 : InvalidBuildFileException ( location
,
129 "Required attribute '%s' not found on '%s'.",
130 attributeName
.c_str (),
131 elementName
.c_str ())
135 InvalidAttributeValueException::InvalidAttributeValueException (
136 const string
& location
,
138 const string
& value
)
139 : InvalidBuildFileException ( location
,
140 "Attribute '%s' has an invalid value '%s'.",
147 BackendNameConflictException::BackendNameConflictException ( const string
& name
)
148 : Exception ( "Backend name conflict: '%s'",
154 UnknownBackendException::UnknownBackendException ( const string
& name
)
155 : Exception ( "Unknown Backend requested: '%s'",
161 UnknownModuleTypeException::UnknownModuleTypeException ( const string
& location
,
163 : InvalidBuildFileException ( location
,
164 "module type requested: %i",
170 InvocationFailedException::InvocationFailedException ( const std::string
& command
,
172 : Exception ( "Failed to execute '%s' (exit code %d)",