Table of Contents

Class YeelightException

Namespace
Yeelight
Assembly
YeelightClient.dll

Thrown when a command does not succeed: the light refused it, or it did not get to the light, or its answer did not come back.

public class YeelightException : Exception, ISerializable
Inheritance
YeelightException
Implements
Inherited Members

Remarks

The client and the connection are fine after this exception: a failure of one command does not end the connection, and a lost connection is made again by the client. Kind tells which of the two it is. A command that was cancelled throws an OperationCanceledException and not this.

Constructors

YeelightException()

Initializes a new instance of the YeelightException class.

YeelightException(string)

Initializes a new instance of the YeelightException class.

YeelightException(string, Exception)

Initializes a new instance of the YeelightException class.

Properties

Error

Gets the error that the command ended with, or null for an exception that was not made from one.

Kind

Gets why the command did not succeed.

Method

Gets the method of the command that failed (for example set_power), when it is known.