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

Represents an exception thrown when an operation is not available offline and a server connection is required to perform it. More...

Inheritance diagram for OperationNotAvailableOffline:

Public Member Functions

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

Static Public Attributes

const new string DefaultMessage = "The operation is not available locally and the client is in offline mode."
 Default error message indicating the server could not be reached and the operation 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 operation is not available until ConnectionOnline==true.

Detailed Description

Represents an exception thrown when an operation is not available offline and a server connection is required to perform it.

Retrying will not succeed unless ConnectionOnline becomes true

Constructor & Destructor Documentation

◆ OperationNotAvailableOffline()

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

OperationNotAvailableOffline 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