Show / Hide Table of Contents

Class NullOrEmptyException

Provides exception for empty and null objects of the System.String type.

Inheritance
System.Object
System.Exception
System.ApplicationException
NullOrEmptyException
ArgumentNullOrEmptyException
AssemblyNotInitializedException
MetaPathNullOrEmptyException
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: Terrasoft.Common
Assembly: Terrasoft.Common.dll
Syntax
public class NullOrEmptyException : ApplicationException, ISerializable, _Exception

Constructors

NullOrEmptyException()

Initializes a new instance of the NullOrEmptyException class.

Declaration
public NullOrEmptyException()

NullOrEmptyException(SerializationInfo, StreamingContext)

Declaration
protected NullOrEmptyException(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info
System.Runtime.Serialization.StreamingContext context

NullOrEmptyException(String)

Initializes a new instance of the NullOrEmptyException class using the specified error message.

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

Error message.

NullOrEmptyException(String, Exception)

Initializes a new instance of the NullOrEmptyException class using the specified error message and the link to the internal exception that was the cause of this exception.

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

Error message.

System.Exception innerException

Internal exception.

NullOrEmptyException(String, String)

Initializes a new instance of the NullOrEmptyException class using the specified error message.

Declaration
public NullOrEmptyException(string message, string objectName)
Parameters
Type Name Description
System.String message

Error message.

System.String objectName

.

Implements

System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception

Extension Methods

ReflectionUtilities.GetPropertyValue(Object, String)
ReflectionUtilities.GetPropertyDefValue(Object, String, Object)
ReflectionUtilities.TryGetPropertyValue(Object, String, out Object)
ReflectionUtilities.HasProperty(Object, String)
ReflectionUtilities.GetPropertyValue(Object, String, BindingFlags)
ReflectionUtilities.GetPropertyValueByPath(Object, String)
ReflectionUtilities.SetPropertyValue(Object, String, Object)
ReflectionUtilities.TrySetPropertyValue(Object, String, Object)
ValidateUtilities.CheckArgumentNull(Object, String)
ValidateUtilities.CheckDependencyNull(Object, String)
ValidateUtilities.EnsureDependencyNotNull<T>(T, String)
ExceptionExtension.ToResponse<T>(Exception)
ExceptionExtension.GetExceptionContent(Exception)
MetaDataTestUtils.MetaPropertiesShouldNotHaveDefValue<TInstance>(TInstance)
MetaDataTestUtils.MetaPropertiesShouldNotHaveDefValue<TInstance>(TInstance, Boolean)
NSubstituteExtension.Protected(Object, String, Object[])
NSubstituteExtension.Protected(Object, String, Boolean, Object[])
NSubstituteExtension.ProtectedGeneric<T>(Object, String, Object[])
NSubstituteExtension.ProtectedGeneric<T>(Object, String, Boolean, Object[])
NSubstituteExtension.ProtectedProperty(Object, String)
NSubstituteExtension.MatchInstance<T>(T)
SubstituteUtilities.GetIsSubstituteObject(Object)
SubstituteUtilities.Instead<TInstance, TValue>(TInstance, Func<TInstance, TValue>)
Back to top Generated by DocFX