You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* *** We should raise/generate only XamlGenerationException from code generation logic. ***
14
14
*
15
15
* This allows to properly capture location information and context about the error and proper reporting to the user.
16
-
* Other kind of exception should strictly reserve to internal logic errors that should never happen during normal operation (including with invalid XAML file).
16
+
* Other kind of exception should strictly be reserved to internal logic errors that should never happen during normal operation (including with invalid XAML file).
17
17
*
18
18
* Messages:
19
19
* ** Error messages are reported to the end-user. **
* - They must not end with a dot ('.'), as the dot is added when generating the error comment in the generated code (_follows MS logic_).
25
25
*
26
26
* When it's possible to continue to generate valid C# code, prefer to use AddError(), GenerateError() instead of throwing.
27
-
* This allows user to get all errors of a XAML file in a single build instead of fixing them one by one.
27
+
* This allows the user to get all errors of a XAML file in a single build instead of fixing them one by one.
28
28
*
29
-
* The Safely methods allows to properly handle errors in code generation blocks.
29
+
* The Safely methods allow to properly handle errors in code generation blocks.
30
30
* They should be used to wrap any code generation block that can raise exceptions.
31
-
* Like for the AddError and GenerateError, they give ability to the user to get all errors in a single build by continuing generation of the end of the XAML file.
31
+
* Like for the AddError and GenerateError, they give the ability to the user to get all errors in a single build by continuing generation of the end of the XAML file.
0 commit comments