using System;
namespace SharpCAT.Client
{
///
/// Exception thrown by SharpCAT client operations
///
public class SharpCATClientException : Exception
{
///
/// Additional details about the error
///
public string? Details { get; }
///
/// Initializes a new instance of the SharpCATClientException class
///
public SharpCATClientException()
{
}
///
/// Initializes a new instance of the SharpCATClientException class with a specified error message
///
/// The message that describes the error
public SharpCATClientException(string message) : base(message)
{
}
///
/// Initializes a new instance of the SharpCATClientException class with a specified error message and details
///
/// The message that describes the error
/// Additional details about the error
public SharpCATClientException(string message, string? details) : base(message)
{
Details = details;
}
///
/// Initializes a new instance of the SharpCATClientException class with a specified error message and a reference to the inner exception
///
/// The message that describes the error
/// The exception that is the cause of the current exception
public SharpCATClientException(string message, Exception innerException) : base(message, innerException)
{
}
///
/// Initializes a new instance of the SharpCATClientException class with a specified error message, details, and a reference to the inner exception
///
/// The message that describes the error
/// Additional details about the error
/// The exception that is the cause of the current exception
public SharpCATClientException(string message, string? details, Exception innerException) : base(message, innerException)
{
Details = details;
}
}
}