Class UnifiedValidationResult
- Namespace
- DotCompute.Backends.CUDA.Types
- Assembly
- DotCompute.Backends.CUDA.dll
Validation result for CUDA operations
public sealed class UnifiedValidationResult
- Inheritance
-
UnifiedValidationResult
- Inherited Members
Properties
ErrorMessage
Gets or sets the error message.
public string? ErrorMessage { get; init; }
Property Value
- string
The error message.
IsValid
Gets or sets a value indicating whether valid.
public bool IsValid { get; init; }
Property Value
- bool
The is valid.
Warnings
Gets or sets the warnings.
public IReadOnlyList<string> Warnings { get; init; }
Property Value
- IReadOnlyList<string>
The warnings.
Methods
Error(string)
Gets error.
public static UnifiedValidationResult Error(string message)
Parameters
messagestringThe message.
Returns
- UnifiedValidationResult
The result of the operation.
Failure(string)
Gets failure.
public static UnifiedValidationResult Failure(string message)
Parameters
messagestringThe message.
Returns
- UnifiedValidationResult
The result of the operation.
Success()
Gets success.
public static UnifiedValidationResult Success()
Returns
- UnifiedValidationResult
The result of the operation.
Success(string)
Gets success.
public static UnifiedValidationResult Success(string message)
Parameters
messagestringThe message.
Returns
- UnifiedValidationResult
The result of the operation.
SuccessWithWarnings(IReadOnlyList<string>)
Gets success with warnings.
public static UnifiedValidationResult SuccessWithWarnings(IReadOnlyList<string> warnings)
Parameters
warningsIReadOnlyList<string>The warnings.
Returns
- UnifiedValidationResult
The result of the operation.
SuccessWithWarnings(string[])
Gets success with warnings.
public static UnifiedValidationResult SuccessWithWarnings(string[] warnings)
Parameters
warningsstring[]The warnings.
Returns
- UnifiedValidationResult
The result of the operation.