TechbloxModdingAPI/GamecraftModdingAPI/Blocks/BlockExceptions.cs
NorbiPeti dba7c0a46f
Added 2 block events and removed BDNEException
Added an event for placing and removing blocks
Added a class to wrap event calls in a try-catch
Removed BlockDoesNotExistException
Made Block.GetSimBody() return null if block doesn't exist
2020-06-02 03:15:32 +02:00

43 lines
731 B
C#

using System;
using GamecraftModdingAPI;
namespace GamecraftModdingAPI.Blocks
{
public class BlockException : GamecraftModdingAPIException
{
public BlockException()
{
}
public BlockException(System.String message) : base(message)
{
}
public BlockException(System.String message, Exception innerException) : base(message, innerException)
{
}
}
public class BlockTypeException : BlockException
{
public BlockTypeException()
{
}
public BlockTypeException(string message) : base(message)
{
}
}
public class BlockSpecializationException : BlockException
{
public BlockSpecializationException()
{
}
public BlockSpecializationException(string message) : base(message)
{
}
}
}