Class SecurityException
Represents an error that is raised when a object does not validate o.k.
Inheritance
Implements
Inherited Members
Namespace: TimeCockpit.Data.DataModel
Assembly: TimeCockpit.Data.dll
Syntax
public class SecurityException : Exception, _Exception, ISerializable
Remarks
SecurityException
is used in combination with the System.ComponentModel.IDataErrorInfo interface.
It does not have anything to do with ValidationRule.
Constructors
SecurityException(SerializationInfo, StreamingContext)
Initializes a new instance of the SecurityException class
Declaration
protected SecurityException(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. |
SecurityException(String)
Initializes a new instance of the SecurityException class
Declaration
public SecurityException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | A message that describes the error. |
SecurityException(String, Exception)
Initializes a new instance of the SecurityException class
Declaration
public SecurityException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | A 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. |
Methods
GetObjectData(SerializationInfo, StreamingContext)
Sets the 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 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. |