More specific exceptions such as XamlParseException exist and are often thrown instead of XamlException. Specific exceptions typically provide more precise exception information as properties of the exception, or just because the specific exception was raised.