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
Properties
Error
Actionable error code.
public FileOperationError Error { get; }
Property Value
FilePath
Path to the file that caused the exception.
public string FilePath { get; }
Property Value
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
codeintSystem error code
Returns
- int
Error code represented as HResult code