> ## Documentation Index
> Fetch the complete documentation index at: https://docs.liv.tv/llms.txt
> Use this file to discover all available pages before exploring further.

# LckResult

> How to handle success and error responses from LIV Camera Kit (LCK) service operations in Unity without exceptions.

## Description

`LckResult` is the standard return type for `LckService` operations. Instead of throwing exceptions, methods return this structured result containing a success flag, optional error code, descriptive message, and the operation's value. It serves the same purpose as `Result<T>` in `LckCore` but is used by the higher-level service layer.

***

## Usage

Use `LckResult` whenever you call an `LckService` method. Always check `Success` before accessing the value.

```c# theme={null}
var result = _lckService.GetDescriptor();

if (result.Success)
{
    Debug.Log($"Descriptor: {result.Result}");
}
else
{
    Debug.LogError($"Failed ({result.Error}): {result.Message}");
}
```

***

## References

### Properties

| Name    | Type                                        | Description                                                                      |
| :------ | :------------------------------------------ | :------------------------------------------------------------------------------- |
| Success | bool                                        | Indicates whether the operation was successful.                                  |
| Message | string                                      | Provides an optional message, typically used for error information.              |
| Error   | [`LckError`](/api-reference/enum/LckError)? | Contains the error code or type if the operation failed.                         |
| Result  | T                                           | The result value of the operation if successful; default value of `T` otherwise. |

***

## See Also

* [Result T](/api-reference/unity/classes/core/Result) — Similar result type used by LckCore methods
* [LckError](/api-reference/unity/enums/LckError) — Error codes returned in the Error property
* [LckService](/api-reference/unity/classes/LckService) — Service class whose methods return LckResult
