Table of Contents

Struct ErrorInfo

Namespace
Ubiquity.NET.Llvm
Assembly
Ubiquity.NET.Llvm.dll

Represents the success or failure of an operation with "try" semantics

public readonly ref struct ErrorInfo
Inherited Members

Remarks

In addition to the Success and Failed states this also tracks any error messages in the event of a failure.

Constructors

ErrorInfo(LazyEncodedString)

Initializes a new instance of the ErrorInfo struct

Properties

Failed

Gets a value indicating whether this instance represents a failure

IsDisposed

Gets a value indicating whether this instance is disposed

Success

Gets a value indicating whether this instance represents success

Methods

Dispose()

Releases the underlying LLVM handle

ThrowIfFailed()

Throws an exception if this instance is a failure result (Failed is true)

ToString()

Gets a string representation of the error message