#include <ManagedGError.h>
Wrapper for GLib's GError
returned by the most of DBus methods. This class is not thread safe.
◆ ManagedGError() [1/2]
alexaClientSDK::bluetoothImplementations::blueZ::ManagedGError::ManagedGError |
( |
GError * |
error | ) |
|
|
inlineexplicit |
A constructor initializing object with existing GError*
value.
- Parameters
-
error | error to be attached. |
◆ ManagedGError() [2/2]
alexaClientSDK::bluetoothImplementations::blueZ::ManagedGError::ManagedGError |
( |
| ) |
|
|
inline |
A constructor initializing object with an emtpy (no error) value
◆ ~ManagedGError()
alexaClientSDK::bluetoothImplementations::blueZ::ManagedGError::~ManagedGError |
( |
| ) |
|
|
inline |
◆ getMessage()
const char * alexaClientSDK::bluetoothImplementations::blueZ::ManagedGError::getMessage |
( |
| ) |
|
|
inline |
Get the message associated with the error. Returns nullptr if there is no error. The pointer is valid as long as the ManagedGError
object exists.
- Returns
- A message associated with the error.
◆ hasError()
bool alexaClientSDK::bluetoothImplementations::blueZ::ManagedGError::hasError |
( |
| ) |
|
|
inline |
Check if object contains any error.
- Returns
- true if there is an error
◆ toOutputParameter()
GError ** alexaClientSDK::bluetoothImplementations::blueZ::ManagedGError::toOutputParameter |
( |
| ) |
|
|
inline |
Get a pointer to GError*
variable
- Returns
- A pointer to the internal variable holding the error
The documentation for this class was generated from the following file:
- /workplace/avs-device-sdk/BluetoothImplementations/BlueZ/include/BlueZ/ManagedGError.h
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0