Open sandboxFocus

Class ObjectReadOnlyException

Exception thrown by objects that have the FreezableThreadingModel or ImmutableThreadingModel when an attempt is made to modify the object after it has been made read-only.

Inheritance
ObjectReadOnlyException
Implements
Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading.dll
Syntax
public sealed class ObjectReadOnlyException : Exception, ISerializable

Constructors

Name Description
ObjectReadOnlyException()

Initializes a new instance of the ObjectReadOnlyException class with the default error message.

ObjectReadOnlyException(string)

Initializes a new instance of the ObjectReadOnlyException class with a given error message.

ObjectReadOnlyException(string, Exception)

Initializes a new instance of the ObjectReadOnlyException class with a given error message and inner exception.