| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using System.Text; |
| | | 4 | | |
| | | 5 | | namespace MUNity.Exceptions.Resolution |
| | | 6 | | { |
| | | 7 | | |
| | | 8 | | /// <summary> |
| | | 9 | | /// Throw this exception when an operative section is not found inside the OperativeSection. |
| | | 10 | | /// </summary> |
| | | 11 | | [Serializable] |
| | | 12 | | public class OperativeParagraphNotFoundException : Exception |
| | | 13 | | { |
| | | 14 | | /// <summary> |
| | | 15 | | /// Base exception of an operative paragraph could not be found |
| | | 16 | | /// </summary> |
| | 0 | 17 | | public OperativeParagraphNotFoundException() { } |
| | | 18 | | |
| | | 19 | | /// <summary> |
| | | 20 | | /// Operative paragraph cannot be found inside the operative section with a message |
| | | 21 | | /// </summary> |
| | | 22 | | /// <param name="message"></param> |
| | 0 | 23 | | public OperativeParagraphNotFoundException(string message) : base(message) { } |
| | | 24 | | |
| | | 25 | | /// <summary> |
| | | 26 | | /// Paragraph cannot be found with a message and an inner exception. |
| | | 27 | | /// </summary> |
| | | 28 | | /// <param name="message"></param> |
| | | 29 | | /// <param name="inner"></param> |
| | 0 | 30 | | public OperativeParagraphNotFoundException(string message, Exception inner) : base(message, inner) { } |
| | | 31 | | |
| | | 32 | | /// <summary> |
| | | 33 | | /// General info. |
| | | 34 | | /// </summary> |
| | | 35 | | /// <param name="info"></param> |
| | | 36 | | /// <param name="context"></param> |
| | | 37 | | protected OperativeParagraphNotFoundException( |
| | | 38 | | System.Runtime.Serialization.SerializationInfo info, |
| | 0 | 39 | | System.Runtime.Serialization.StreamingContext context) : base(info, context) { } |
| | | 40 | | } |
| | | 41 | | } |