mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-09 03:06:55 +00:00
InventoryTransaction::execute() now throws exceptions instead of returning true/false
This commit is contained in:
@ -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{
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user