1 module RootstockException
where
2 import Control
.Monad
.Trans
.Error
(Error
, strMsg
)
4 data RootstockException
7 | InsufficientForReserve
12 | CurrencyAlreadyPresent
16 instance Show RootstockException
where
18 = "According to the database, Rootstock shouldn't be running now"
20 = "Database already has nodes"
21 show InsufficientForReserve
22 = "Not enough XRP to meet desired reserve"
24 = "Requested IOU line not found"
26 = "Non-positive balance in requested IOU line"
28 = "The database doesn't seem to have been set up yet"
30 = "The price given should be positive, but isn't"
31 show CurrencyAlreadyPresent
32 = "The specified currency is already being managed by Rootstock"
34 = "The currency to be added is too much to fit into the current Rootstock"
37 instance Error RootstockException
where