Errors

This page contains all the possible errors one can receive from the Web-Library and the situations in which they occur.

Keep in mind that while using the Web-Library, one can receive errors described in API Errors on top of the one listed here. The errors described here are thrown from the Web-Library and not from LimePay's API.

Validation

Error Name

Code

Message

Description

Occurence

VALIDATION_ERROR

4014

{propertyName} is not an object

General validation of objects that are passed to the library

-

VALIDATION_ERROR

4015

{propertyName} is not a string

General validation of strings that are passed to the library

-

VALIDATION_ERROR

4016

{propertyName} is not a boolean

General validation of booleans that are passed to the library

-

VALIDATION_ERROR

4017

{propertyName}is not defined

General validation of parameter that is required

-

VALIDATION_ERROR

4019

Provided wallet is not instance of ethers.Wallet

When you are signing transactions with decrypted wallet and the wallet is not an instance of ethers.Wallet

Signing transactions with .signWithDecryptedWallet

Token Verification

Error Name

Code

Message

Description

Occurence

TOKEN_VERIFICATION_ERROR

1140

Invalid LimePay token

When the provided lime token for loading payments is not valid

Loading payments

TOKEN_VERIFICATION_ERROR

1141

No token provided

When no token is provided but it is required

Creating, Changing and Getting Wallet for a Shopper

Transactions

Error Name

Code

Message

Description

Occurence

TRANSACTION_VALIDATION_ERROR

3020

"No transactions provided!"

When you are trying to sign transactions, but haven't provided them

Signing transactions with .Transactions

TRANSACTION_VALIDATION_ERROR

3120

The provided signed transactions are not an array

When you are trying to sign transactions, but haven't array of transactions

Signing transactions with .Transactions

TRANSACTION_VALIDATION_ERROR

3220

Invalid function name. {functionName} cannot be found in the provided ABI

When you are trying to sign transactions, but the functionName of a generic transactions is invalid (not present in the ABI)

Signing transactions with .Transactions

TRANSACTION_VALIDATION_ERROR

3021

It should have at least one signed transaction.

When you are trying to sign transactions, but you have provided an empty array

Signing transactions with .Transactions

TRANSACTION_VALIDATION_ERROR

3110

Transaction has been provided with invalid format. TX: {transaction}

When you are trying to sign transactions, but you have provided transaction with invalid properties

Signing transactions with .Transactions

Wallets

Error Name

Code

Message

Description

Occurence

WALLET_ERROR

8003

No mnemonic provided

When you don't provide a mnemonic when you are changing the password of a encrypted wallet

Changing password of the Wallet for a Shopper

WALLET_ERROR

8004

No password provided

When you don't provide new password when you are changing the password of a encrypted wallet

Changing password of the Wallet for a Shopper