InventoryTransaction::execute() now throws exceptions instead of returning true/false

This commit is contained in:
Dylan K. Taylor
2020-07-01 14:08:28 +01:00
parent 30591d047c
commit cf5e31c619
5 changed files with 83 additions and 26 deletions

View File

@ -23,6 +23,9 @@ declare(strict_types=1);
namespace pocketmine\inventory\transaction;
class TransactionValidationException extends \RuntimeException{
/**
* Thrown when a transaction cannot proceed due to preconditions not being met (e.g. transaction doesn't balance).
*/
class TransactionValidationException extends TransactionException{
}