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 ( const string
& attributeName
,
97 const string
& elementName
)
98 : InvalidBuildFileException ( "Required attribute '%s' not found on '%s'.",
99 attributeName
.c_str (),
100 elementName
.c_str ())
104 InvalidAttributeValueException::InvalidAttributeValueException ( const string
& name
,
105 const string
& value
)
106 : InvalidBuildFileException ( "Attribute '%s' has an invalid value '%s'.",
113 BackendNameConflictException::BackendNameConflictException ( const string
& name
)
114 : Exception ( "Backend name conflict: '%s'",
120 UnknownBackendException::UnknownBackendException ( const string
& name
)
121 : Exception ( "Unknown Backend requested: '%s'",