Implemented indexer, cleanup
This commit is contained in:
14
src/Indexer/Exceptions/IndexerExceptions.cs
Normal file
14
src/Indexer/Exceptions/IndexerExceptions.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace Indexer.Exceptions;
|
||||
|
||||
public class IndexerConfigurationException : Exception
|
||||
{
|
||||
public IndexerConfigurationException()
|
||||
: base("Configuration is incomplete or was set up incorrectly")
|
||||
{
|
||||
}
|
||||
|
||||
public IndexerConfigurationException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
18
src/Indexer/Exceptions/WorkerExceptions.cs
Normal file
18
src/Indexer/Exceptions/WorkerExceptions.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace Indexer.Exceptions;
|
||||
|
||||
public class UnknownScriptLanguageException : Exception
|
||||
{
|
||||
public string? FileName { get; }
|
||||
|
||||
public UnknownScriptLanguageException(string? fileName = null)
|
||||
: base("Unable to determine script language")
|
||||
{
|
||||
FileName = fileName;
|
||||
}
|
||||
|
||||
public UnknownScriptLanguageException(string message, string? fileName = null)
|
||||
: base(message)
|
||||
{
|
||||
FileName = fileName;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user