Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Object­Read­Only­Exception Class

ObjectReadOnlyException Class

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 Hierarchy
System.Object
  System.Exception
    PostSharp.Patterns.Threading.ObjectReadOnlyException

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 6.0.24.0 (6.0.24.0)
Syntax
C#
[SerializableAttribute]
public sealed class ObjectReadOnlyException : Exception
Constructors
  NameDescription
Public methodObjectReadOnlyException()
Initializes a new instance of the ObjectReadOnlyException class with the default error message.
Public methodObjectReadOnlyException(String)
Initializes a new instance of the ObjectReadOnlyException class with a given error message.
Public methodObjectReadOnlyException(String, Exception)
Initializes a new instance of the ObjectReadOnlyException class with a given error message and inner exception.
See Also