| | | 1 | | using NanoCLang.Entities; |
| | | 2 | | using System; |
| | | 3 | | |
| | | 4 | | namespace NanoCLang { |
| | | 5 | | /// <summary> |
| | | 6 | | /// Represents errors that occur during well-formedness checking. |
| | | 7 | | /// </summary> |
| | | 8 | | public class IllFormedException : Exception { |
| | | 9 | | /// <summary> |
| | | 10 | | /// Gets or sets the entity that is ill-formed. |
| | | 11 | | /// </summary> |
| | 34 | 12 | | public Base Entity { get; set; } |
| | | 13 | | /// <summary> |
| | | 14 | | /// Initializes a new instance of the <see cref="IllFormedException"/> class with a specified error <paramref na |
| | | 15 | | /// </summary> |
| | | 16 | | /// <param name="entity">Entity that raised the error.</param> |
| | | 17 | | /// <param name="message">The message that describes the error.</param> |
| | 68 | 18 | | public IllFormedException(Base entity, string message) : base(message) { |
| | 34 | 19 | | Entity = entity; |
| | 34 | 20 | | } |
| | | 21 | | /// <summary> |
| | | 22 | | /// Initializes a new instance of the <see cref="IllFormedException"/> class with a specified error <paramref na |
| | | 23 | | /// </summary> |
| | | 24 | | /// <param name="entity">Entity that raised the error.</param> |
| | | 25 | | /// <param name="message">The message that describes the error.</param> |
| | | 26 | | /// <param name="innerException">The exception that is the cause of the current exception, or a null reference</ |
| | 0 | 27 | | public IllFormedException(Base entity, string message, Exception innerException) : base(message, innerException) |
| | 0 | 28 | | Entity = entity; |
| | 0 | 29 | | } |
| | | 30 | | } |
| | | 31 | | } |