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

Exception thrown when : More...

Inheritance diagram for DataNotAvailableOffline:

Public Member Functions

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

Static Public Attributes

const new string DefaultMessage = "The data is not available locally and the client is in offline mode."
 Default error message indicating the server could not be reached and data is unavailable offline.
const new int DefaultStatus = 410
 Default HTTP status code representing the error condition. 410 Gone is chosen here because retrying won't help - the data is not available until ConnectionOnline==true.

Detailed Description

Exception thrown when :

  1. Cascade ConnectionOnline==false and
  2. the requested data doesn't exist locally

Retrying will not succeed unless ConnectionOnline becomes true

Constructor & Destructor Documentation

◆ DataNotAvailableOffline()

DataNotAvailableOffline.DataNotAvailableOffline ( 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