using System; namespace ASCOM.Meade.net.Wrapper { public class GetValueException : Exception { public GetValueException( string driverId, string name, string subKey, string defaultValue, Exception innerException ) : base ( $"Error getting value {name} from driver {driverId} in {subKey} and default value {defaultValue} cannot be used.", innerException) { } public GetValueException( string driverId, string name, string subKey, string defaultValue, string value, Exception innerException): base($"Error converting value {name} from {value}", innerException) { } } }