-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.go
28 lines (25 loc) · 1.49 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package Faucet
import "errors"
type ServerError error
type BadRequestError error
type NotAuthenticated error
type NotAuthorized error
var (
AddressMissing BadRequestError = errors.New("address is missing")
AddressInvalid BadRequestError = errors.New("address is invalid")
AddressRegistered BadRequestError = errors.New("Test-XPX can only be sent once every 24 hours")
IpAddressRegistered BadRequestError = errors.New("Test-XPX can only be sent once every 24 hours")
RecordAlready BadRequestError = errors.New("record already exists")
MaximumQuantity BadRequestError = errors.New("The account has the maximum amount of mosaic")
TryAgainLater BadRequestError = errors.New("Try again later")
Unauthenticated NotAuthenticated = errors.New("not authenticated")
Unauthorized NotAuthorized = errors.New("not authorized")
DbError ServerError = errors.New("database error")
BlockchainApiError ServerError = errors.New("blockchain call failed")
CreateMosaicError ServerError = errors.New("mosaic creation failed")
CreateTransferTxnError ServerError = errors.New("transfer txn creation failed")
UnexpectedError ServerError = errors.New("unexpected error occurred")
WebsocketError ServerError = errors.New("websocket error")
MosaicInvalid BadRequestError = errors.New("mosaic is invalid")
MosaicMissing BadRequestError = errors.New("mosaicId is missing")
)