Cascade
Loading...
Searching...
No Matches
OriginAccessFailure Class Reference

An exception thrown when : More...

Inheritance diagram for OriginAccessFailure:

Public Member Functions

 OriginAccessFailure (string aMessage=null, Exception aInnerException=null, int aStatus=DefaultStatus)
 DataNotAvailableOffline Constructor.

Static Public Attributes

const new string DefaultMessage = "The origin could not be accessed due to a network or server failure."
 Default error message indicating the network or server failed temporarily.
const new int DefaultStatus = 504
 504 Gateway Timeout is chosen here because it is likely a temporary network failure

Detailed Description

An exception thrown when :

  1. Cascade ConnectionOnline==true and
  2. A request to the origin failed to connect and
  3. the requested data doesn't exist locally or doesn't meet the fallback freshness requirement

Retrying is likely to succeed

Constructor & Destructor Documentation

◆ OriginAccessFailure()

OriginAccessFailure.OriginAccessFailure ( string aMessage = null,
Exception aInnerException = null,
int aStatus = DefaultStatus )
inline

DataNotAvailableOffline Constructor.

Parameters
aMessageCustom error message, defaults to predefined message if null.
aInnerExceptionThe inner exception that caused this exception, if any.
aStatusHTTP status code for the error, defaults to 410.

The documentation for this class was generated from the following file:
  • Buzzware.Cascade/utilities/CascadeExceptions.cs