Errors Reference
Reference

Errors Reference

Numerical error codes (1-17), error symbols, causes, and recommended solutions.

Exhaustive catalog of all 17 contract errors declared in contracts/splitpay/src/errors.rs.

Complete Error Codes Table

CodeError IdentifierTrigger Condition
1AlreadyInitializedContract admin has already been set.
2NotInitializedOperation invoked before contract initialize() was called.
3PoolNotFoundSpecified pool ID does not exist in ledger storage.
4PaymentNotFoundSpecified payment ID does not exist.
5MemberNotFoundMember address is not registered in the target pool.
6MemberAlreadyExistsMember address has already been added to this pool.
7UnauthorizedCaller lacks required authority (owner, admin, or payer).
8InvalidPoolStatusPool is Inactive and cannot accept or settle payments.
9InvalidShareSpecified share BPS is 0 or exceeds 10,000.
10InvalidTotalSharesCumulative shares exceed 10,000 or do not equal 10,000 at payment time.
11InvalidAmountPayment amount is zero or negative (<= 0).
12InvalidAssetAsset address is invalid or lacks SEP-41 interface.
13PaymentAlreadyExistsA payment with this ID already exists.
14PaymentAlreadySettledPayment has already been settled and is finalized.
15InvalidPaymentPayment configuration does not match pool rules.
16PoolAlreadyExistsA pool with this numerical ID already exists.
17ArithmeticOverflowInteger multiplication, addition, or division overflowed.

Detailed Error Troubleshooting

How to resolve Error 10 (InvalidTotalShares): When creating or settling a payment, query get_pool_members(pool_id) and sum all share_bps. The sum must equal exactly 10,000 before create_payment or settle_payment will succeed.