Class BaseException
Summary description for BaseException.
Implements
Inherited Members
Namespace: ImageVault.Common.Lib
Assembly: ImageVault.Common.dll
Syntax
public abstract class BaseException : Exception, ISerializable, _Exception
Constructors
BaseException()
Creates an instance of the BaseException class.
Declaration
protected BaseException()
BaseException(SerializationInfo, StreamingContext)
Initializes a new instance of the BaseException class.
Declaration
protected BaseException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The object that holds the serialized object data. |
System.Runtime.Serialization.StreamingContext | context | The contextual information about the source or destination. |
BaseException(String)
Creates an instance of the BaseException class.
Declaration
protected BaseException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | Message for the exception |
BaseException(String, Exception)
Creates an instance of the BaseException class.
Declaration
protected BaseException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | Message for the exception |
System.Exception | innerException | Inner exception |
Methods
ExceptionToString(Exception)
Creates a string of the exception that is a combination of all inner exceptions found, plus the stacktrace
Declaration
public static string ExceptionToString(Exception ex)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | ex | The exception to read from |
Returns
Type | Description |
---|---|
System.String | A descriptive text |
ExceptionToString(Exception, String)
Creates a string of the exception that is a combination of all inner exceptions found, plus the stacktrace
Declaration
public static string ExceptionToString(Exception ex, string innerMessage)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | ex | The exception to read from |
System.String | innerMessage | An inner message to be prepended to the list of messages |
Returns
Type | Description |
---|---|
System.String | A descriptive text |
ToString()
Converts the exception to a descriptive text
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A descriptive text |
Overrides
ToString(String)
Converts the exception to a descriptive text
Declaration
protected string ToString(string innerMessage)
Parameters
Type | Name | Description |
---|---|---|
System.String | innerMessage | An inner message to be prepended to the description |
Returns
Type | Description |
---|---|
System.String | A descriptive text |