You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
627 B
16 lines
627 B
1 year ago
|
namespace StabilityMatrix.Core.Exceptions;
|
||
|
|
||
|
public class PromptValidationError : PromptError
|
||
|
{
|
||
|
/// <inheritdoc />
|
||
|
public PromptValidationError(string message, int textOffset, int textEndOffset) : base(message, textOffset, textEndOffset)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public static PromptValidationError Network_UnknownType(int textOffset, int textEndOffset) =>
|
||
|
new("Unknown network type", textOffset, textEndOffset);
|
||
|
|
||
|
public static PromptSyntaxError Network_InvalidWeight(int textOffset, int textEndOffset) =>
|
||
|
new("Invalid network weight, could not be parsed as double", textOffset, textEndOffset);
|
||
|
}
|