Class ModularityException
Base class for exceptions that are thrown because of a problem with modules.
Inheritance
Implements
Namespace: Sartorius.SAF.Presentation.Modularity
Assembly: Sartorius.SAF.Presentation.dll
Syntax
[Serializable]
public class ModularityException : Exception, ISerializable
Constructors
View SourceModularityException()
Initializes a new instance of the ModularityException class.
Declaration
public ModularityException()
ModularityException(SerializationInfo, StreamingContext)
Initializes a new instance with serialized data.
Declaration
protected ModularityException(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. |
ModularityException(String)
Initializes a new instance of the ModularityException class.
Declaration
public ModularityException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The exception message. |
ModularityException(String, Exception)
Initializes a new instance of the ModularityException class.
Declaration
public ModularityException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The exception message. |
System.Exception | innerException | The inner exception. |
ModularityException(String, String)
Initializes the exception with a particular module and error message.
Declaration
public ModularityException(string moduleName, string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | moduleName | The name of the module. |
System.String | message | The error message that explains the reason for the exception. |
ModularityException(String, String, Exception)
Initializes the exception with a particular module, error message and inner exception that happened.
Declaration
public ModularityException(string moduleName, string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | moduleName | The name of the module. |
System.String | message | The error message that explains the reason for the exception. |
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 SourceModuleName
Gets or sets the name of the module that this exception refers to.
Declaration
public string ModuleName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the module. |
Methods
View SourceGetObjectData(SerializationInfo, StreamingContext)
Sets the System.Runtime.Serialization.SerializationInfo with information about the exception.
Declaration
[SecurityPermission(SecurityAction.Demand, Flags = SecurityPermissionFlag.SerializationFormatter)]
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. |