44namespace AET . ModVerify . Reporting . Diagnostics ;
55
66/// <summary>Provides the engine-initialization descriptor read by the engine reporter.</summary>
7- public static class Engine
7+ public static class EngineErrors
88{
99 /// <summary>The game engine reported an error during initialization. The message is supplied by the engine.</summary>
1010 public static readonly ErrorDescriptor InitializationError = new (
1111 VerifierErrorCodes . InitializationError , "EngineInitializationError" , VerificationSeverity . Critical , "Engine" ) ;
1212}
1313
1414/// <summary>Provides factories for hard-coded engine assets that are loaded at startup.</summary>
15- public static class HardcodedAssets
15+ public static class HardcodedAssetErrors
1616{
1717 private static readonly ErrorDescriptor _shaderNotFound = new (
1818 VerifierErrorCodes . FileNotFound , "HardcodedShaderNotFound" , VerificationSeverity . Error , "HardcodedAssets" ) ;
@@ -31,71 +31,8 @@ public static VerificationError TerrainShaderNotFound(IGameVerifierInfo verifier
3131 => _terrainShaderNotFound . Create ( verifier , $ "Unable to find terrain shader '{ shaderName } '.", shaderName , context ) ;
3232}
3333
34- // Descriptors for findings produced by the engine-side reporters. Their messages are supplied by the engine
35- // (XML parser, asserts), so the reporters read only Id and Severity.
36-
37- /// <summary>Provides descriptors for findings reported by the engine's XML parser.</summary>
38- public static class Xml
39- {
40- /// <summary>The XML parser reported an error that does not map to a more specific kind.</summary>
41- public static readonly ErrorDescriptor Generic = new (
42- VerifierErrorCodes . GenericXmlError , "XmlGenericError" , VerificationSeverity . Warning , "Xml" ) ;
43-
44- /// <summary>An XML file has an empty root element.</summary>
45- public static readonly ErrorDescriptor EmptyRoot = new (
46- VerifierErrorCodes . EmptyXmlRoot , "XmlEmptyRoot" , VerificationSeverity . Critical , "Xml" ) ;
47-
48- /// <summary>An XML file referenced by the parser could not be found.</summary>
49- public static readonly ErrorDescriptor MissingFile = new (
50- VerifierErrorCodes . FileNotFound , "XmlMissingFile" , VerificationSeverity . Error , "Xml" ) ;
51-
52- /// <summary>An XML element has an invalid value.</summary>
53- public static readonly ErrorDescriptor InvalidValue = new (
54- VerifierErrorCodes . InvalidXmlValue , "XmlInvalidValue" , VerificationSeverity . Information , "Xml" ) ;
55-
56- /// <summary>An XML element has a malformed value.</summary>
57- public static readonly ErrorDescriptor MalformedValue = new (
58- VerifierErrorCodes . MalformedXmlValue , "XmlMalformedValue" , VerificationSeverity . Warning , "Xml" ) ;
59-
60- /// <summary>An XML element is missing a required attribute.</summary>
61- public static readonly ErrorDescriptor MissingAttribute = new (
62- VerifierErrorCodes . MissingXmlAttribute , "XmlMissingAttribute" , VerificationSeverity . Error , "Xml" ) ;
63-
64- /// <summary>An XML element references an entry that does not exist.</summary>
65- public static readonly ErrorDescriptor MissingReference = new (
66- VerifierErrorCodes . MissingXmlReference , "XmlMissingReference" , VerificationSeverity . Error , "Xml" ) ;
67-
68- /// <summary>An XML value exceeds the maximum allowed length.</summary>
69- public static readonly ErrorDescriptor ValueTooLong = new (
70- VerifierErrorCodes . XmlValueTooLong , "XmlValueTooLong" , VerificationSeverity . Warning , "Xml" ) ;
71-
72- /// <summary>An XML file contains data before its header.</summary>
73- public static readonly ErrorDescriptor DataBeforeHeader = new (
74- VerifierErrorCodes . XmlDataBeforeHeader , "XmlDataBeforeHeader" , VerificationSeverity . Information , "Xml" ) ;
75-
76- /// <summary>A required XML node is missing.</summary>
77- public static readonly ErrorDescriptor MissingNode = new (
78- VerifierErrorCodes . XmlMissingNode , "XmlMissingNode" , VerificationSeverity . Critical , "Xml" ) ;
79-
80- /// <summary>An XML file contains a node the parser does not support.</summary>
81- public static readonly ErrorDescriptor UnknownNode = new (
82- VerifierErrorCodes . XmlUnsupportedTag , "XmlUnknownNode" , VerificationSeverity . Information , "Xml" ) ;
83-
84- /// <summary>An XML tag unexpectedly contains child elements.</summary>
85- public static readonly ErrorDescriptor TagHasElements = new (
86- VerifierErrorCodes . XmlElementsInTag , "XmlTagHasElements" , VerificationSeverity . Warning , "Xml" ) ;
87-
88- /// <summary>An XML element has a name the parser did not expect.</summary>
89- public static readonly ErrorDescriptor UnexpectedElementName = new (
90- VerifierErrorCodes . XmlUnexceptedElementName , "XmlUnexpectedElementName" , VerificationSeverity . Information , "Xml" ) ;
91-
92- /// <summary>An XML node has an empty name.</summary>
93- public static readonly ErrorDescriptor EmptyNodeName = new (
94- VerifierErrorCodes . XmlEmptyNodeName , "XmlEmptyNodeName" , VerificationSeverity . Warning , "Xml" ) ;
95- }
96-
9734/// <summary>Provides descriptors for assertions raised by the engine.</summary>
98- public static class Asserts
35+ public static class AssertErrors
9936{
10037 /// <summary>The engine asserted that a value was null or empty.</summary>
10138 public static readonly ErrorDescriptor NullOrEmptyValue = new (
0 commit comments