MigrationError
Migration error with message and optional inner exception.
public sealed record MigrationError : IEquatable<MigrationError>
Constructors
MigrationError
public MigrationError(string Message, Exception? InnerException = null)
Migration error with message and optional inner exception.
| Parameter | Type | Description |
|---|---|---|
Message |
String |
Error message |
InnerException |
Exception |
Optional inner exception |
Properties
Message
public string Message { get; init; }
Error message
InnerException
public Exception? InnerException { get; init; }
Optional inner exception
Methods
FromMessage(string)
public static MigrationError FromMessage(string message)
Creates a migration error from a message.
Parameters:
| Name | Type | Description |
|---|---|---|
message |
String |
Returns: MigrationError
FromException(Exception)
public static MigrationError FromException(Exception ex)
Creates a migration error from an exception.
Parameters:
| Name | Type | Description |
|---|---|---|
ex |
Exception |
Returns: MigrationError
ToString()
public override string ToString()
Returns a string that represents the current object.
Returns: String - A string that represents the current object.