Class NullOrEmptyException
Представляет исключение для пустых и null
объектов типа System.String.
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
[Serializable]
public class NullOrEmptyException : ApplicationException, ISerializable, _Exception
Constructors
NullOrEmptyException()
Инициализирует новый экземпляр класса NullOrEmptyException.
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)
Инициализирует новый экземпляр класса NullOrEmptyException, используя заданное сообщение об ошибке.
Declaration
public NullOrEmptyException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | Сообщение об ошибке. |
NullOrEmptyException(String, Exception)
Инициализирует новый экземпляр класса NullOrEmptyException, используя заданное сообщение об ошибке и ссылку на внутреннее исключение, которое стало причиной данного исключения.
Declaration
public NullOrEmptyException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | Сообщение об ошибке. |
System.Exception | innerException | Внутреннее исключение. |
NullOrEmptyException(String, String)
Инициализирует новый экземпляр класса NullOrEmptyException, используя заданное сообщение об ошибке.
Declaration
public NullOrEmptyException(string message, string objectName)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | Сообщение об ошибке. |
System.String | objectName | . |
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception