Search Results for

    Show / Hide Table of Contents

    Class InvalidTransactionException

    Exception that is thrown when a required transaction is not usable.

    Inheritance
    System.Object
    System.Exception
    InvalidTransactionException
    Implements
    System.Runtime.InteropServices._Exception
    System.Runtime.Serialization.ISerializable
    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: TimeCockpit.Data.Database
    Assembly: TimeCockpit.Data.dll
    Syntax
    public class InvalidTransactionException : Exception, _Exception, ISerializable
    Remarks

    Many operations on DbClient interact with an internal transaction object. If the transaction object is not usable (e.g. a database server terminated the transaction) operations depending on it can no longer be executed (e.g. SaveObject). The program flow interacting with the DbClient should rollback on any unexpected exception which causes the faulty transaction to be disposed.

    Constructors

    InvalidTransactionException()

    Initializes a new instance of the InvalidTransactionException class

    Declaration
    public InvalidTransactionException()

    InvalidTransactionException(SerializationInfo, StreamingContext)

    Initializes a new instance of the InvalidTransactionException class

    Declaration
    protected InvalidTransactionException(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.

    InvalidTransactionException(String)

    Initializes a new instance of the InvalidTransactionException class

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

    Message describing the cause of the error

    InvalidTransactionException(String, Exception)

    Initializes a new instance of the InvalidTransactionException class

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

    Message describing the cause of 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.

    Overrides
    System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
    Implements
    System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
    In This Article
    Back to top Copyright © 2020 software architects gmbh