C++ edjLibrary SDK
Loading...
Searching...
No Matches
Namespaces | Enumerations | Functions
error.hpp File Reference
#include "http.hpp"

Go to the source code of this file.

Namespaces

namespace  edjx
 
namespace  edjx::error
 Error-handling enums and utilities.
 

Enumerations

enum class  edjx::error::HttpError {
  edjx::error::Success = 0 , edjx::error::SystemError , edjx::error::UnknownError , edjx::error::HeaderInvalidName ,
  edjx::error::HeaderInvalidValue , edjx::error::HeaderTooLargeName , edjx::error::HeaderTooLargeValue , edjx::error::HTTPBodyTooLarge ,
  edjx::error::UriInvalid , edjx::error::UriTooLarge , edjx::error::HTTPInvalidMethod , edjx::error::HTTPInvalidStatusCode ,
  edjx::error::HTTPInvalidVersion , edjx::error::HTTPFetchResponseNotFound , edjx::error::HTTPFetchRequestFailed , edjx::error::HTTPChannelClosed
}
 Enum describing return values of functions that correspond to HTTP modules. More...
 
enum class  edjx::error::KVError { edjx::error::Success = 0 , edjx::error::Unknown , edjx::error::NotFound , edjx::error::UnAuthorized }
 Enum describing return values of functions that correspond to kv modules. More...
 
enum class  edjx::error::StorageError {
  edjx::error::Success = 0 , edjx::error::SystemError , edjx::error::EmptyContent , edjx::error::MissingFileName ,
  edjx::error::DeletedBucketID , edjx::error::MissingBucketID , edjx::error::InternalError , edjx::error::ContentNotFound ,
  edjx::error::UnAuthorized , edjx::error::MissingAttributes , edjx::error::ContentDeleted , edjx::error::InvalidAttributes ,
  edjx::error::ResourceLimit , edjx::error::StorageResponseNotFound , edjx::error::StorageChannelClosed
}
 Enum describing return values of functions that correspond to storage modules. More...
 
enum class  edjx::error::StreamError {
  edjx::error::Success = 0 , edjx::error::EndOfStream , edjx::error::Unknown , edjx::error::SystemError ,
  edjx::error::StreamNotFound , edjx::error::StreamChannelClosed , edjx::error::ReadOnWriteStream , edjx::error::WriteOnReadStream ,
  edjx::error::StreamClosed , edjx::error::StreamChunkTooLarge
}
 Enum that describes values returned by streaming functions. More...
 

Functions

std::string edjx::error::to_string (HttpError e)
 Returns a string representation of HttpError. More...
 
std::string edjx::error::to_string (KVError e)
 Returns a string representation of KVError. More...
 
std::string edjx::error::to_string (StorageError e)
 Returns a string representation of StorageError. More...
 
edjx::http::HttpStatusCode edjx::error::to_http_status_code (StorageError e)
 Convert an edjx::error::StorageError into an HTTP status code. More...
 
std::string edjx::error::to_string (StreamError e)