const ErrNotFound, ErrNotUserCall, ErrSessionKey, ErrWrongDenom, ErrBadAmount, ErrDepositMismatch, ErrPaused, ErrNotOrganizer, ErrNotBeneficiary, ErrNotAdmin, ErrCampaignClosed, ErrCampaignSettled, ErrBondSlashed, ErrNoBond, ErrHoldEnded, ErrWrongMode, ErrNothingToRefund, ErrRefundWindowClosed, ErrExitOpen, ErrNotClosable, ErrNotFinalizable, ErrNothingToWithdraw, ErrTitle, ErrDescription, ErrMessage, ErrUpdate, ErrNotice, ErrImage, ErrMarkup, ErrBeneficiary, ErrCategory, ErrMode, ErrDeadline, ErrGoal, ErrSetting, ErrSunset, ErrCapReached, ErrBooksMismatch
1const (
2 ErrNotFound Error = "err.not_found: no such campaign or receipt"
3 ErrNotUserCall Error = "err.use_wallet: not a direct transaction from a wallet"
4 ErrSessionKey Error = "err.master_key: a session key can't do this"
5 ErrWrongDenom Error = "err.amount: only ugnot is accepted"
6 ErrBadAmount Error = "err.amount: the amount is wrong"
7 ErrDepositMismatch Error = "err.amount: send exactly the creation deposit"
8 ErrPaused Error = "err.paused: Bolo is paused"
9 ErrNotOrganizer Error = "err.not_allowed: only the organizer can do this"
10 ErrNotBeneficiary Error = "err.not_allowed: only the beneficiary can do this"
11 ErrNotAdmin Error = "err.not_allowed: only the admin can do this"
12 ErrCampaignClosed Error = "err.state: the campaign is closed"
13 ErrCampaignSettled Error = "err.state: the campaign is settled"
14 ErrBondSlashed Error = "err.state: the bond was slashed"
15 ErrNoBond Error = "err.state: there is no bond to slash"
16 ErrHoldEnded Error = "err.state: the bond's hold has ended"
17 ErrWrongMode Error = "err.mode: not for this custody mode"
18 ErrNothingToRefund Error = "err.refund: nothing to refund"
19 ErrRefundWindowClosed Error = "err.refund: no refund window is open"
20 ErrExitOpen Error = "err.exit_open: the exit window is open"
21 ErrNotClosable Error = "err.not_yet: the campaign can't be closed yet"
22 ErrNotFinalizable Error = "err.not_yet: the campaign can't be finalized yet"
23 ErrNothingToWithdraw Error = "err.withdraw: nothing to withdraw"
24 ErrTitle Error = "err.text: the title's length is out of bounds"
25 ErrDescription Error = "err.text: the story's length is out of bounds"
26 ErrMessage Error = "err.text: the message's length is out of bounds"
27 ErrUpdate Error = "err.text: the update's length is out of bounds"
28 ErrNotice Error = "err.text: the notice's length is out of bounds"
29 ErrImage Error = "err.text: the photo or its description is invalid"
30 ErrMarkup Error = "err.markup: a story or update holds no image and no raw HTML"
31 ErrBeneficiary Error = "err.input: invalid beneficiary"
32 ErrCategory Error = "err.input: unknown category"
33 ErrMode Error = "err.input: invalid custody mode"
34 ErrDeadline Error = "err.input: invalid deadline"
35 ErrGoal Error = "err.input: invalid goal"
36 ErrSetting Error = "err.input: invalid setting"
37 ErrSunset Error = "err.sunset: this version takes no new campaigns"
38 ErrCapReached Error = "err.cap: the campaign's escrow cap is reached"
39 ErrBooksMismatch Error = "err.internal: the books exceed the bank (INV-1)"
40)