Multi-Platform Package Manager for Stable Diffusion
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.
|
|
|
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 PromptValidationError Network_UnknownModel(
|
|
|
|
string model,
|
|
|
|
int textOffset,
|
|
|
|
int textEndOffset
|
|
|
|
) => new($"Model '{model}' was not found locally", textOffset, textEndOffset);
|
|
|
|
|
|
|
|
public static PromptSyntaxError Network_InvalidWeight(int textOffset, int textEndOffset) =>
|
|
|
|
new("Invalid network weight, could not be parsed as double", textOffset, textEndOffset);
|
|
|
|
}
|