// dnlib: See LICENSE.txt for more info using System; using System.Runtime.Serialization; namespace dnlib.DotNet.Pdb.Managed { /// /// Exception that is thrown when encounters an error. /// [Serializable] sealed class PdbException : Exception { /// /// Constructor /// public PdbException() { } /// /// Constructor /// /// Exception message public PdbException(string message) : base($"Failed to read PDB: {message}") { } /// /// Constructor /// /// Inner exception public PdbException(Exception innerException) : base($"Failed to read PDB: {innerException.Message}", innerException) { } /// /// Constructor /// /// /// public PdbException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }