# Class RoomLockedException | EchoHub Documentation
Thrown when sending into an end-to-end encrypted channel whose room key isn't cached: without the key the message would leave the client as plaintext, which must never happen.

# Class RoomLockedException

Namespace
  EchoHub.Client.Services

Assembly
  EchoHub.Client.dll

Thrown when sending into an end-to-end encrypted channel whose room key isn't cached: without the key the message would leave the client as plaintext, which must never happen.

    public sealed class RoomLockedException : Exception

Inheritance
  object
  Exception
  RoomLockedException

Inherited Members
  Exception.GetBaseException()
  Exception.ToString()
  Exception.GetType()
  Exception.TargetSite
  Exception.Message
  Exception.Data
  Exception.InnerException
  Exception.HelpLink
  Exception.Source
  Exception.HResult
  Exception.StackTrace
  object.Equals(object)
  object.Equals(object, object)
  object.ReferenceEquals(object, object)
  object.GetHashCode()

## Constructors

### RoomLockedException(string)

    public RoomLockedException(string channelName)

#### Parameters

`channelName` string

## Properties

### ChannelName

    public string ChannelName { get; }

#### Property Value

string