> ## Documentation Index
> Fetch the complete documentation index at: https://docs.raffl.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# RafflErrors

# Errors

[Git Source](https://github.com/Raffleth/protocol/blob/d0e7a98ac74e241068705b47dbc09c29744e1867/src/libraries/RafflErrors.sol)

## Errors

### OnlyFactoryAllowed

Thrown if anyone other than the factory tries to interact.

```solidity theme={null}
error OnlyFactoryAllowed();
```

### OnlyCreatorAllowed

Thrown if anyone other than the creator tries to interact.

```solidity theme={null}
error OnlyCreatorAllowed();
```

### EntryQuantityRequired

Thrown if no entry quantity is provided.

```solidity theme={null}
error EntryQuantityRequired();
```

### EntriesPurchaseClosed

Thrown if the entries purchase period is closed.

```solidity theme={null}
error EntriesPurchaseClosed();
```

### EntriesPurchaseInvalidValue

Thrown if invalid value provided for entries purchase.

```solidity theme={null}
error EntriesPurchaseInvalidValue();
```

### RefundsOnlyAllowedOnFailedDraw

Thrown if refunds are initiated before draw failure.

```solidity theme={null}
error RefundsOnlyAllowedOnFailedDraw();
```

### UserWithoutEntries

Thrown if a user without entries tries to claim.

```solidity theme={null}
error UserWithoutEntries();
```

### UserAlreadyRefunded

Thrown if a user was already refunded entries.

```solidity theme={null}
error UserAlreadyRefunded();
```

### PrizesAlreadyRefunded

Thrown if prizes are already refunded.

```solidity theme={null}
error PrizesAlreadyRefunded();
```

### MaxUserEntriesReached

Thrown if the maximum entries limit per user has been reached.

```solidity theme={null}
error MaxUserEntriesReached();
```

### MaxTotalEntriesReached

Thrown if the total maximum entries limit has been reached.

```solidity theme={null}
error MaxTotalEntriesReached();
```

### WithoutRefunds

Thrown if the refund operation is initiated without any refunds.

```solidity theme={null}
error WithoutRefunds();
```

### TokenGateRestriction

Thrown if token gate restriction is violated.

```solidity theme={null}
error TokenGateRestriction();
```
