8 Exception::Exception ()
12 Exception::Exception ( const string
& message
)
17 Exception::Exception ( const char* format
,
23 Message
= ssvprintf ( format
,
28 void Exception::SetMessage ( const char* message
,
31 Message
= ssvprintf ( message
,
36 InvalidOperationException::InvalidOperationException ( const char* filename
,
39 Message
= ssprintf ( "%s:%d",
45 FileNotFoundException::FileNotFoundException ( const string
& filename
)
46 : Exception ( "File '%s' not found.",
53 AccessDeniedException::AccessDeniedException ( const string
& filename
)
54 : Exception ( "Access denied to file '%s'.",
61 InvalidBuildFileException::InvalidBuildFileException ( const string
& location
,
68 SetLocationMessage ( location
, message
, args
);
72 InvalidBuildFileException::InvalidBuildFileException ()
77 InvalidBuildFileException::SetLocationMessage ( const std::string
& location
,
81 Message
= location
+ ": " + ssvprintf ( message
, args
);
84 XMLSyntaxErrorException::XMLSyntaxErrorException ( const string
& location
,
91 SetLocationMessage ( location
, message
, args
);
96 RequiredAttributeNotFoundException::RequiredAttributeNotFoundException (
97 const string
& location
,
98 const string
& attributeName
,
99 const string
& elementName
)
100 : InvalidBuildFileException ( location
,
101 "Required attribute '%s' not found on '%s'.",
102 attributeName
.c_str (),
103 elementName
.c_str ())
107 InvalidAttributeValueException::InvalidAttributeValueException (
108 const string
& location
,
110 const string
& value
)
111 : InvalidBuildFileException ( location
,
112 "Attribute '%s' has an invalid value '%s'.",
119 BackendNameConflictException::BackendNameConflictException ( const string
& name
)
120 : Exception ( "Backend name conflict: '%s'",
126 UnknownBackendException::UnknownBackendException ( const string
& name
)
127 : Exception ( "Unknown Backend requested: '%s'",
132 UnknownModuleTypeException::UnknownModuleTypeException ( const string
& location
,
133 const string
& moduletype
)
134 : InvalidBuildFileException ( location
,
135 "module type requested: '%s'",