Fastly Compute C++ SDK
Loading...
Searching...
No Matches
fastly::cache::simple::CacheError Class Reference

Errors arising from cache operations. More...

#include <simple.h>

Public Types

enum  Code {
  LimitExceeded , InvalidOperation , Unsupported , Io ,
  Purge , GetOrSet , Other
}

Public Member Functions

 CacheError (Code code)
Code code () const

Detailed Description

Errors arising from cache operations.

Member Enumeration Documentation

◆ Code

Enumerator
LimitExceeded 

Operation failed due to a limit.

InvalidOperation 

An underlying Core Cache API operation found an invalid state. This should not arise during use of this API. If encountered, please report it as a bug.

Unsupported 

Cache operation is not supported.

Io 

An I/O error occurred.

Purge 

An error occurred when purging a value.

GetOrSet 

An error occurred while running the closure argument of get_or_set_with.

Other 

An unknown error occurred.

Constructor & Destructor Documentation

◆ CacheError()

fastly::cache::simple::CacheError::CacheError ( Code code)
inline

Member Function Documentation

◆ code()

Code fastly::cache::simple::CacheError::code ( ) const
inline

The documentation for this class was generated from the following file: