AtomsFramework Persistence Layer Reference Guide

SaveException Class

[This is preliminary documentation and subject to change.]

Exception for errors that occur during the persisting of objects to a database.

For a list of all members of this type, see SaveException Members.

System.Object
   System.Exception
      AtomsFramework.AtomsFrameworkException
         AtomsFramework.SaveException

[Visual Basic]
NotInheritable Public Class SaveException
    Inherits AtomsFrameworkException
[C#]
public sealed class SaveException : AtomsFrameworkException

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

This exception is thrown when an error occurs while writing data to the database. This can occur for either new objects or existing objects.

Some errors are expected under certain conditions. These exceptions are caught internally and do not cause a SaveException to be thrown.

It's good practice to wrap all persistence methods in a try/catch block

Requirements

Namespace: AtomsFramework

Assembly: AtomsFramework (in AtomsFramework.dll)

See Also

SaveException Members | AtomsFramework Namespace