| | 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 the given implementation of the AbstractAmendment is not capable to work with |
| | 10 | | /// in a given case. |
| | 11 | | /// </summary> |
| | 12 | | [Serializable] |
| | 13 | | public class UnsupportedAmendmentTypeException : Exception |
| | 14 | | { |
| | 15 | | /// <summary> |
| | 16 | | /// Exception that the action cannot be performed with this type of amendment. |
| | 17 | | /// </summary> |
| 0 | 18 | | public UnsupportedAmendmentTypeException() { } |
| | 19 | |
|
| | 20 | | /// <summary> |
| | 21 | | /// Exception that the action cannot be performed with this type of amendment with some extra information. |
| | 22 | | /// </summary> |
| | 23 | | /// <param name="message"></param> |
| 0 | 24 | | public UnsupportedAmendmentTypeException(string message) : base(message) { } |
| | 25 | |
|
| | 26 | | /// <summary> |
| | 27 | | /// Exception of something else went wrong and the inner Exception of what went wrong. |
| | 28 | | /// </summary> |
| | 29 | | /// <param name="message"></param> |
| | 30 | | /// <param name="inner"></param> |
| 0 | 31 | | public UnsupportedAmendmentTypeException(string message, Exception inner) : base(message, inner) { } |
| | 32 | |
|
| | 33 | | /// <summary> |
| | 34 | | /// General info. |
| | 35 | | /// </summary> |
| | 36 | | /// <param name="info"></param> |
| | 37 | | /// <param name="context"></param> |
| | 38 | | protected UnsupportedAmendmentTypeException( |
| | 39 | | System.Runtime.Serialization.SerializationInfo info, |
| 0 | 40 | | System.Runtime.Serialization.StreamingContext context) : base(info, context) { } |
| | 41 | | } |
| | 42 | | } |