конец
This commit is contained in:
parent
75771bbd50
commit
a1cb51e02c
16
WarmlyLocomotive/StorageOverflowException.cs
Normal file
16
WarmlyLocomotive/StorageOverflowException.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace WarmlyLocomotive.Exceptions
|
||||
{
|
||||
[Serializable]
|
||||
internal class StorageOverflowException : ApplicationException
|
||||
{
|
||||
public StorageOverflowException(int count) : base($"В наборе превышено допустимое количество: {count}") { }
|
||||
public StorageOverflowException() : base() { }
|
||||
public StorageOverflowException(string message) : base(message) { }
|
||||
public StorageOverflowException(string message, Exception exception)
|
||||
: base(message, exception) { }
|
||||
protected StorageOverflowException(SerializationInfo info,
|
||||
StreamingContext contex) : base(info, contex) { }
|
||||
}
|
||||
}
|
15
WarmlyLocomotive/WarmlyLocomotiveNotFoundException.cs
Normal file
15
WarmlyLocomotive/WarmlyLocomotiveNotFoundException.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System.Runtime.Serialization;
|
||||
namespace WarmlyLocomotive.Exceptions
|
||||
{
|
||||
[Serializable]
|
||||
internal class WarmlyLocomotiveNotFoundException : ApplicationException
|
||||
{
|
||||
public WarmlyLocomotiveNotFoundException(int i) : base($"Не найден объект по позиции {i}") { }
|
||||
public WarmlyLocomotiveNotFoundException() : base() { }
|
||||
public WarmlyLocomotiveNotFoundException(string message) : base(message) { }
|
||||
public WarmlyLocomotiveNotFoundException(string message, Exception exception) : base(message, exception)
|
||||
{ }
|
||||
protected WarmlyLocomotiveNotFoundException(SerializationInfo info,
|
||||
StreamingContext contex) : base(info, contex) { }
|
||||
}
|
||||
}
|
15
WarmlyLocomotive/debug.json
Normal file
15
WarmlyLocomotive/debug.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"Serilog": {
|
||||
"Using": [ "Serilog.Sinks.File" ],
|
||||
"MinimumLevel": "Debug",
|
||||
"WriteTo": [
|
||||
{
|
||||
"Name": "File",
|
||||
"Args": { "path": "log.txt" }
|
||||
}
|
||||
],
|
||||
"Properties": {
|
||||
"Application": "Sample"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user