Initial sync
This commit is contained in:
10
Nbt/Exceptions/NbtException.cs
Executable file
10
Nbt/Exceptions/NbtException.cs
Executable file
@@ -0,0 +1,10 @@
|
||||
namespace Nbt;
|
||||
|
||||
public class NbtException : Exception
|
||||
{
|
||||
public NbtException() { }
|
||||
|
||||
public NbtException(string? message) : base(message) { }
|
||||
|
||||
public NbtException(string? message, Exception? innerException) : base(message, innerException) { }
|
||||
}
|
||||
22
Nbt/Exceptions/TagNotFoundException.cs
Executable file
22
Nbt/Exceptions/TagNotFoundException.cs
Executable file
@@ -0,0 +1,22 @@
|
||||
// using Nbt.Tag;
|
||||
|
||||
// namespace Nbt;
|
||||
|
||||
// public class TagNotFoundException : NbtException
|
||||
// {
|
||||
// public TagNotFoundException(INbtTag parentTag, INbtPathElement tagPathElement)
|
||||
// {
|
||||
// ParentTag = parentTag;
|
||||
// TagPathElement = tagPathElement;
|
||||
// }
|
||||
|
||||
// public TagNotFoundException(INbtTag parentTag, INbtPathElement tagPathElement, string? message) : base(message)
|
||||
// {
|
||||
// ParentTag = parentTag;
|
||||
// TagPathElement = tagPathElement;
|
||||
// }
|
||||
|
||||
// public INbtTag ParentTag { get; }
|
||||
|
||||
// public INbtPathElement TagPathElement { get; }
|
||||
// }
|
||||
16
Nbt/Exceptions/UnknownCompressionSchemeException.cs
Executable file
16
Nbt/Exceptions/UnknownCompressionSchemeException.cs
Executable file
@@ -0,0 +1,16 @@
|
||||
namespace Nbt;
|
||||
|
||||
public class UnknownCompressionSchemeException : NbtException
|
||||
{
|
||||
public int CompressionMode { get; }
|
||||
|
||||
public UnknownCompressionSchemeException(int mode)
|
||||
{
|
||||
CompressionMode = mode;
|
||||
}
|
||||
|
||||
public UnknownCompressionSchemeException(int mode, string? message) : base(message)
|
||||
{
|
||||
CompressionMode = mode;
|
||||
}
|
||||
}
|
||||
16
Nbt/Exceptions/UnknownTagTypeException.cs
Executable file
16
Nbt/Exceptions/UnknownTagTypeException.cs
Executable file
@@ -0,0 +1,16 @@
|
||||
namespace Nbt;
|
||||
|
||||
public class UnknownTagTypeException : NbtException
|
||||
{
|
||||
public UnknownTagTypeException(NbtTagType unknownTagType) : base()
|
||||
{
|
||||
UnknownTagType = unknownTagType;
|
||||
}
|
||||
|
||||
public UnknownTagTypeException(NbtTagType unknownTagType, string? message) : base(message)
|
||||
{
|
||||
UnknownTagType = unknownTagType;
|
||||
}
|
||||
|
||||
public NbtTagType UnknownTagType { get; }
|
||||
}
|
||||
8
Nbt/Exceptions/UnsupportedPathElementException.cs
Executable file
8
Nbt/Exceptions/UnsupportedPathElementException.cs
Executable file
@@ -0,0 +1,8 @@
|
||||
namespace Nbt;
|
||||
|
||||
public class UnsupportedPathElementException : NbtException
|
||||
{
|
||||
public UnsupportedPathElementException() : base() { }
|
||||
|
||||
public UnsupportedPathElementException(string? message) : base(message) { }
|
||||
}
|
||||
8
Nbt/Exceptions/WrongTagTypeException.cs
Executable file
8
Nbt/Exceptions/WrongTagTypeException.cs
Executable file
@@ -0,0 +1,8 @@
|
||||
namespace Nbt;
|
||||
|
||||
public class WrongTagTypeException : NbtException
|
||||
{
|
||||
public WrongTagTypeException() : base() { }
|
||||
|
||||
public WrongTagTypeException(string? message) : base(message) { }
|
||||
}
|
||||
Reference in New Issue
Block a user