namespace TINK.Model.Repository.Exception { public class InvalidResponseException : InvalidResponseException { /// Constructs an invalid response Exception. /// Describes the action which failed. /// Response from copri. public InvalidResponseException(string p_strActionWhichFailed, T p_oResponse) : base(string.Format( "{0}{1}", p_strActionWhichFailed, p_oResponse == null ? string.Format(" Response des Typs {0} ist null.", typeof(T).Name.ToString()) : string.Empty)) { Response = p_oResponse; } public T Response { get; private set; } } /// /// Base exception for all generic invalid response exceptions. /// public class InvalidResponseException : CommunicationException { /// Prevents an invalid instance to be created. private InvalidResponseException() { } /// Constructs a invalid response execption. /// Exception. public InvalidResponseException(string p_strMessage) : base(p_strMessage) { } } }