Hazelcast C++ Client
Hazelcast C++ Client Library
Loading...
Searching...
No Matches
hazelcast::client::sql::hazelcast_sql_exception Class Reference
Inheritance diagram for hazelcast::client::sql::hazelcast_sql_exception:

Public Member Functions

 hazelcast_sql_exception (std::string source, boost::uuids::uuid originating_member_id, int32_t code, boost::optional< std::string > message, boost::optional< std::string > suggestion, std::exception_ptr cause=nullptr)
const boost::uuids::uuid & originating_member_id () const
 Gets ID of the member that caused or initiated an error condition.
int32_t code () const
 Gets the internal error code associated with the exception.
const boost::optional< std::string > & suggestion () const
 Gets the suggested SQL statement to remediate experienced error.

Detailed Description

Definition at line 28 of file hazelcast_sql_exception.h.

Constructor & Destructor Documentation

◆ hazelcast_sql_exception()

hazelcast::client::sql::hazelcast_sql_exception::hazelcast_sql_exception ( std::string source,
boost::uuids::uuid originating_member_id,
int32_t code,
boost::optional< std::string > message,
boost::optional< std::string > suggestion,
std::exception_ptr cause = nullptr )

Definition at line 594 of file sql.cpp.

601 : hazelcast_(std::move(source),
602 message ? std::move(message).value() : "",
603 "",
604 std::move(cause))
605 , originating_member_id_(std::move(originating_member_id))
606 , code_(code)
607 , suggestion_(std::move(suggestion))
608{
609}
int32_t code() const
Gets the internal error code associated with the exception.
Definition sql.cpp:618
const boost::uuids::uuid & originating_member_id() const
Gets ID of the member that caused or initiated an error condition.
Definition sql.cpp:612
const boost::optional< std::string > & suggestion() const
Gets the suggested SQL statement to remediate experienced error.
Definition sql.cpp:624

Member Function Documentation

◆ code()

int32_t hazelcast::client::sql::hazelcast_sql_exception::code ( ) const

Gets the internal error code associated with the exception.

Definition at line 618 of file sql.cpp.

619{
620 return code_;
621}

◆ originating_member_id()

const boost::uuids::uuid & hazelcast::client::sql::hazelcast_sql_exception::originating_member_id ( ) const

Gets ID of the member that caused or initiated an error condition.

Definition at line 612 of file sql.cpp.

613{
614 return originating_member_id_;
615}

◆ suggestion()

const boost::optional< std::string > & hazelcast::client::sql::hazelcast_sql_exception::suggestion ( ) const

Gets the suggested SQL statement to remediate experienced error.

Definition at line 624 of file sql.cpp.

625{
626 return suggestion_;
627}

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