// dnlib: See LICENSE.txt for more info using System; using System.Runtime.Serialization; namespace dnlib.DotNet.Emit { /// /// Thrown when invalid data is detected while parsing a .NET method /// [Serializable] public class InvalidMethodException : Exception { /// /// Default constructor /// public InvalidMethodException() { } /// /// Constructor /// /// Error message public InvalidMethodException(string msg) : base(msg) { } /// /// Constructor /// /// Error message /// The inner exception or null if none public InvalidMethodException(string msg, Exception innerException) : base(msg, innerException) { } /// /// Constructor /// /// /// protected InvalidMethodException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }