namespace Cepis;
///
/// The base of every error this library raises. Catch it to handle any failure.
///
///
///
/// Below this type the split is by the decision the caller has to make,
/// not by the HTTP status that caused it.
/// and are
/// problems with the request: retrying is pointless, the same CEP will
/// fail again. ,
/// and are problems with transport:
/// retrying may help, and the client already retried on its own before throwing
/// any of them.
///
///
/// C# allows one base class, so these are not also
/// or : one base type that catches every
/// failure is worth more.
///
///
public abstract class CepisException : Exception
{
/// Create the exception with a message.
/// what went wrong
protected CepisException(string message)
: base(message)
{
}
/// Create the exception with a message and an underlying cause.
/// what went wrong
/// the failure underneath, if any
protected CepisException(string message, Exception? innerException)
: base(message, innerException)
{
}
}