namespace Elternbeirat.PocketBase;
///
/// Thrown when PocketBase could not be reached, timed out, or returned a
/// response that could not be read.
///
///
/// This is the one failure the content pages need to distinguish: the site is
/// up but its data store is not, which is an HTTP 503, not a 404. Which
/// low-level exceptions mean that (a transport error, a timeout, unreadable
/// JSON) is 's concern; callers catch only this
/// type and need not know how the client talks to PocketBase.
///
public sealed class PocketBaseUnavailableException : Exception
{
///
/// Initializes a new instance with a default message.
///
public PocketBaseUnavailableException()
: base("PocketBase is unavailable.")
{
}
///
/// Initializes a new instance with the given message.
///
///
/// The message that describes the error.
///
public PocketBaseUnavailableException(string message)
: base(message)
{
}
///
/// Initializes a new instance with the given message and the underlying
/// failure that caused it.
///
///
/// The message that describes the error.
///
///
/// The transport, timeout, or deserialization exception that was caught.
///
public PocketBaseUnavailableException(string message, Exception innerException)
: base(message, innerException)
{
}
}