# MaxTeamLimitException
> Thrown when the maximum team limit has been reached.
`gg.lode.leadapi.api.exception.MaxTeamLimitException`
---
## Signature
```java
public class MaxTeamLimitException extends Exception
```
## Extends
- `java.lang.Exception`
---
## Constructors
### MaxTeamLimitException()
```java
MaxTeamLimitException()
```
Creates the exception with the default message: `"You have reached the maximum team limit!"`
---
### MaxTeamLimitException(String)
```java
MaxTeamLimitException(String message)
```
Creates the exception with a custom message.
| Parameter | Type | Description |
|---|---|---|
| `message` | `String` | The error message. |
---
## Related Pages
- [[ILeadAPI]] — Methods that throw this exception: `createTeamWithUniqueColor`, `createTeamByType`