Class NullOrEmptyException
Provides exception for empty and null
objects of the System.String type.
Inheritance
System.Object
System.Exception
System.ApplicationException
NullOrEmptyException
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