Show / Hide Table of Contents

# Class ServiceDeploymentException

Indicates an error during Grid Services deployment.

##### Inheritance

System.Object
System.Exception
IgniteException
ServiceDeploymentException

##### Implements

System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception

##### Inherited Members

System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetType()
System.Exception.Message
System.Exception.Data
System.Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
System.Exception.HelpLink
System.Exception.Source
System.Exception.HResult
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()

###### Namespace: Apache.Ignite.Core.Services

###### Assembly: Apache.Ignite.Core.dll

##### Syntax

    [Serializable]
    public class ServiceDeploymentException : IgniteException, ISerializable, _Exception

### Constructors

#### ServiceDeploymentException()

Initializes a new instance of the ServiceDeploymentException class.

##### Declaration

    public ServiceDeploymentException()

#### ServiceDeploymentException(SerializationInfo, StreamingContext)

Initializes a new instance of the IgniteException class.

##### Declaration

    protected ServiceDeploymentException(SerializationInfo info, StreamingContext ctx)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Runtime.Serialization.SerializationInfo | info | Serialization information.
System.Runtime.Serialization.StreamingContext | ctx | Streaming context.

#### ServiceDeploymentException(String)

Initializes a new instance of the ServiceDeploymentException class.

##### Declaration

    public ServiceDeploymentException(string message)

##### Parameters

Type | Name | Description
--- | --- | ---
System.String | message | The message that describes the error.

#### ServiceDeploymentException(String, IBinaryObject, ICollection<ServiceConfiguration>)

Initializes a new instance of the ServiceDeploymentException class.

##### Declaration

    public ServiceDeploymentException(string message, IBinaryObject binaryCause, ICollection<ServiceConfiguration> failedCfgs)

##### Parameters

Type | Name | Description
--- | --- | ---
System.String | message | The message.
IBinaryObject | binaryCause | The binary cause.
System.Collections.Generic.ICollection<ServiceConfiguration> | failedCfgs | List of failed configurations

#### ServiceDeploymentException(String, Exception)

Initializes a new instance of the ServiceDeploymentException class.

##### Declaration

    public ServiceDeploymentException(string message, Exception cause)

##### Parameters

Type | Name | Description
--- | --- | ---
System.String | message | The message.
System.Exception | cause | The cause.

#### ServiceDeploymentException(String, Exception, ICollection<ServiceConfiguration>)

Initializes a new instance of the ServiceDeploymentException class with failed configurations.

##### Declaration

    public ServiceDeploymentException(string message, Exception cause, ICollection<ServiceConfiguration> failedCfgs)

##### Parameters

Type | Name | Description
--- | --- | ---
System.String | message | The message.
System.Exception | cause | The cause.
System.Collections.Generic.ICollection<ServiceConfiguration> | failedCfgs | List of failed configurations

### Properties

#### BinaryCause

Gets the binary cause.

##### Declaration

    public IBinaryObject BinaryCause { get; }

##### Property Value

Type | Description
--- | ---
IBinaryObject |

#### FailedConfigurations

Configurations of services that failed to deploy, could be null

##### Declaration

    public ICollection<ServiceConfiguration> FailedConfigurations { get; }

##### Property Value

Type | Description
--- | ---
System.Collections.Generic.ICollection<ServiceConfiguration> |

### Methods

#### GetObjectData(SerializationInfo, StreamingContext)

When overridden in a derived class, sets the System.Runtime.Serialization.SerializationInfo with information about the exception.

##### Declaration

    public override void GetObjectData(SerializationInfo info, StreamingContext context)

##### Parameters

Type | Name | Description
--- | --- | ---
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.
System.Runtime.Serialization.StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.

##### Overrides

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

### Implements

System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception