mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-04-20 03:56:29 +02:00
Initial version.
This commit is contained in:
parent
193aaa1a56
commit
b72c67a53e
228 changed files with 25924 additions and 0 deletions
34
TINKLib/Repository/Exception/InvalidResponseException.cs
Normal file
34
TINKLib/Repository/Exception/InvalidResponseException.cs
Normal file
|
@ -0,0 +1,34 @@
|
|||
namespace TINK.Model.Repository.Exception
|
||||
{
|
||||
public class InvalidResponseException<T> : InvalidResponseException
|
||||
{
|
||||
/// <summary> Constructs an invalid response Exception. </summary>
|
||||
/// <param name="p_strActionWhichFailed">Describes the action which failed.</param>
|
||||
/// <param name="p_oResponse">Response from copri.</param>
|
||||
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; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Base exception for all generic invalid response exceptions.
|
||||
/// </summary>
|
||||
public class InvalidResponseException : CommunicationException
|
||||
{
|
||||
/// <summary> Prevents an invalid instance to be created. </summary>
|
||||
private InvalidResponseException()
|
||||
{ }
|
||||
|
||||
/// <summary> Constructs a invalid response execption.</summary>
|
||||
/// <param name="p_strMessage">Exception.</param>
|
||||
public InvalidResponseException(string p_strMessage) : base(p_strMessage)
|
||||
{ }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue