Table of Contents

Class FileOperationException

Namespace
Homa.Sdk.Foundation
Assembly
Homa.Sdk.Foundation.dll

Wrapping exception for all file operations via IFileSystem.

public class FileOperationException : Exception, ISerializable
Inheritance
FileOperationException
Implements
Inherited Members

Constructors

FileOperationException(string, Exception)

Wrapping exception for all file operations via IFileSystem.

public FileOperationException(string filePath, Exception inner)

Parameters

filePath string
inner Exception

Properties

Error

Actionable error code.

public FileOperationError Error { get; }

Property Value

FileOperationError

FilePath

Path to the file that caused the exception.

public string FilePath { get; }

Property Value

string

Message

Gets a message that describes the current exception.

public override string Message { get; }

Property Value

string

The error message that explains the reason for the exception, or an empty string ("").

Methods

GetHResultFromErrorCode(int)

Converts System Error Codes to HResult value

public static int GetHResultFromErrorCode(int code)

Parameters

code int

System error code

Returns

int

Error code represented as HResult code

Remarks