Show / Hide Table of Contents

Class ObjectNotFoundException

Represents error of failed object finding.

Inheritance
System.Object
System.Exception
ObjectNotFoundException
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
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: Relativity.Testing.Framework
Assembly: Relativity.Testing.Framework.dll
Syntax
[Serializable]
public class ObjectNotFoundException : Exception, ISerializable, _Exception

Constructors

| Improve this Doc View Source

ObjectNotFoundException()

Initializes a new instance of the ObjectNotFoundException class.

Declaration
public ObjectNotFoundException()
| Improve this Doc View Source

ObjectNotFoundException(SerializationInfo, StreamingContext)

Initializes a new instance of the ObjectNotFoundException class.

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

| Improve this Doc View Source

ObjectNotFoundException(String)

Initializes a new instance of the ObjectNotFoundException class.

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

The message that describes the error.

| Improve this Doc View Source

ObjectNotFoundException(String, Exception)

Initializes a new instance of the ObjectNotFoundException class.

Declaration
public ObjectNotFoundException(string message, Exception innerException)
Parameters
Type Name Description
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 (Nothing in Visual Basic) if no inner exception is specified.

Methods

| Improve this Doc View Source

CreateForNotFoundById<T>(Int32)

Creates ObjectNotFoundException instance for case when entity is not found by ID.

Declaration
public static ObjectNotFoundException CreateForNotFoundById<T>(int id)
Parameters
Type Name Description
System.Int32 id

The entity ID.

Returns
Type Description
ObjectNotFoundException

An instance of ObjectNotFoundException with built error message.

Type Parameters
Name Description
T

The type of entity.

| Improve this Doc View Source

CreateForNotFoundByName<T>(String)

Creates ObjectNotFoundException instance for case when entity is not found by name.

Declaration
public static ObjectNotFoundException CreateForNotFoundByName<T>(string name)
Parameters
Type Name Description
System.String name

The entity name.

Returns
Type Description
ObjectNotFoundException

An instance of ObjectNotFoundException with built error message.

Type Parameters
Name Description
T

The type of entity.

Implements

System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX