Show / Hide Table of Contents

Class DuplicateDeviceException

Exception thrown when a device already exists in the system when attempting to add.

Inheritance
System.Object
System.Exception
DuplicateDeviceException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Phoenix.Devices
Assembly: Phoenix.Abstractions.Devices.dll
Syntax
[Serializable]
public class DuplicateDeviceException : Exception, ISerializable

Constructors

View Source

DuplicateDeviceException()

Initializes a new instance of the DuplicateDeviceException class.

Declaration
public DuplicateDeviceException()
View Source

DuplicateDeviceException(IPAddress)

Initializes a new instance of the DuplicateDeviceException class.

Declaration
public DuplicateDeviceException(IPAddress duplicateIP)
Parameters
Type Name Description
System.Net.IPAddress duplicateIP

The IP address of the device.

View Source

DuplicateDeviceException(SerializationInfo, StreamingContext)

Initializes a new instance of the DuplicateDeviceException class.

Declaration
protected DuplicateDeviceException(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info

The SerializationInfo that holds the serialized object data about the exception being thrown.

System.Runtime.Serialization.StreamingContext context

The StreamingContext that contains contextual information about the source or destination.

View Source

DuplicateDeviceException(String)

Initializes a new instance of the DuplicateDeviceException class.

Declaration
public DuplicateDeviceException(string message)
Parameters
Type Name Description
System.String message

The message that describes the error.

View Source

DuplicateDeviceException(String, Exception)

Initializes a new instance of the DuplicateDeviceException class.

Declaration
public DuplicateDeviceException(string message, Exception innerException)
Parameters
Type Name Description
System.String message

The message that describes the error.

System.Exception innerException

The exception that is the cause of the current exception, or a null reference if no inner exception is specified.

Properties

View Source

IPAddress

Gets the IP address of the device.

Declaration
public IPAddress IPAddress { get; }
Property Value
Type Description
System.Net.IPAddress

Methods

View Source

GetObjectData(SerializationInfo, StreamingContext)

Transfers the object data into serialization information.

Declaration
[SecurityCritical]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info

The serialization info to store data in.

System.Runtime.Serialization.StreamingContext context

The serialization context.

Overrides
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)

Implements

System.Runtime.Serialization.ISerializable

Extension Methods

ExceptionExtensions.FormatLoaderExceptions(Exception)
ExceptionExtensions.FormatMessageAndStackTrace(Exception, Boolean)
  • View Source
In This Article
Back to top Generated by DocFX