DomainException Class

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Indicates that an unrecoverable error has occurred during the execution of a domain operation.

Inheritance Hierarchy

System.Object
  System.Exception
    System.ServiceModel.DomainServices.Client.DomainException

Namespace:  System.ServiceModel.DomainServices.Client
Assembly:  System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)

Syntax

'Declaration
Public NotInheritable Class DomainException _
    Inherits Exception
'Usage
Dim instance As DomainException
public sealed class DomainException : Exception
public ref class DomainException sealed : public Exception
[<SealedAttribute>]
type DomainException =  
    class
        inherit Exception
    end
public final class DomainException extends Exception

The DomainException type exposes the following members.

Constructors

  Name Description
Public method DomainException() Initializes a new instance of the DomainException class with a system-supplied message that describes the error.
Public method DomainException(String) Initializes a new instance of the DomainException class with a specified message that describes the error.
Public method DomainException(String, Exception) Initializes a new instance of the DomainException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Public method DomainException(String, Int32) Initializes a new instance of the DomainException class that has the specified error message and a custom error code.
Public method DomainException(String, Int32, Exception) Initializes a new instance of the DomainException class that has the specified error message, a custom error code, and the inner exception that is the cause of this exception.
Public method DomainException(String, Int32, String) Initializes a new instance of the DomainException class with a localized exception message, a custom error code and a stack trace.

Top

Properties

  Name Description
Public property Data (Inherited from Exception.)
Public property ErrorCode Gets or sets the custom error code for this exception.
Public property HelpLink (Inherited from Exception.)
Protected property HResult (Inherited from Exception.)
Public property InnerException (Inherited from Exception.)
Public property Message (Inherited from Exception.)
Public property Source (Inherited from Exception.)
Public property StackTrace Gets the exception stack trace. (Overrides Exception.StackTrace.)
Public property TargetSite (Inherited from Exception.)

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetBaseException (Inherited from Exception.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData (Inherited from Exception.)
Public method GetType (Inherited from Exception.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Exception.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.ServiceModel.DomainServices.Client Namespace