Microsoft Azure Storage Client Library for C++  7.5.0
The Microsoft Azure Storage Client Library for C++ is a library for working with the Azure Storage Services in C++.
Public Member Functions | List of all members
azure::storage::storage_exception Class Reference

Represents a Windows Azure Storage exception. More...

Inheritance diagram for azure::storage::storage_exception:

Public Member Functions

 storage_exception (const std::string &message, bool retryable=true)
 Initializes a new instance of the azure::storage::storage_exception class. More...
 
 storage_exception (const std::string &message, std::exception_ptr inner_exception, bool retryable=true)
 Initializes a new instance of the azure::storage::storage_exception class. More...
 
 storage_exception (const std::string &message, request_result result, bool retryable=true)
 Initializes a new instance of the azure::storage::storage_exception class. More...
 
 storage_exception (const std::string &message, request_result result, std::exception_ptr inner_exception, bool retryable=true)
 Initializes a new instance of the azure::storage::storage_exception class. More...
 
const request_resultresult () const
 Gets the request result. More...
 
bool retryable () const
 Indicates whether the request is retryable. More...
 
std::exception_ptr inner_exception () const
 Gets the inner exception object that is the cause for the current azure::storage::storage_exception. More...
 

Detailed Description

Represents a Windows Azure Storage exception.

Constructor & Destructor Documentation

◆ storage_exception() [1/4]

azure::storage::storage_exception::storage_exception ( const std::string &  message,
bool  retryable = true 
)
inline

Initializes a new instance of the azure::storage::storage_exception class.

Parameters
messageThe error message.
retryableIndicates whether the request is retryable.

◆ storage_exception() [2/4]

azure::storage::storage_exception::storage_exception ( const std::string &  message,
std::exception_ptr  inner_exception,
bool  retryable = true 
)
inline

Initializes a new instance of the azure::storage::storage_exception class.

Parameters
messageThe error message.
inner_exceptionA std::exception_ptr object containing the inner exception.
retryableIndicates whether the request is retryable.

◆ storage_exception() [3/4]

azure::storage::storage_exception::storage_exception ( const std::string &  message,
request_result  result,
bool  retryable = true 
)
inline

Initializes a new instance of the azure::storage::storage_exception class.

Parameters
messageThe error message.
resultThe request result.
retryableIndicates whether the request is retryable.

◆ storage_exception() [4/4]

azure::storage::storage_exception::storage_exception ( const std::string &  message,
request_result  result,
std::exception_ptr  inner_exception,
bool  retryable = true 
)
inline

Initializes a new instance of the azure::storage::storage_exception class.

Parameters
messageThe error message.
resultThe request result.
inner_exceptionA std::exception_ptr object containing the inner exception.
retryableIndicates whether the request is retryable.

Member Function Documentation

◆ inner_exception()

std::exception_ptr azure::storage::storage_exception::inner_exception ( ) const
inline

Gets the inner exception object that is the cause for the current azure::storage::storage_exception.

Returns
A std::exception_ptr object that points to the inner exception associated with the current azure::storage::storage_exception. A null exception_ptr is returned if there is no inner exception object.

◆ result()

const request_result& azure::storage::storage_exception::result ( ) const
inline

Gets the request result.

Returns
The request result.

◆ retryable()

bool azure::storage::storage_exception::retryable ( ) const
inline

Indicates whether the request is retryable.

Returns
true if the request is retryable.