| 1 | <?php |
||
| 10 | class CouldNotCreateCard extends Exception |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Thrown when the button title is not provided. |
||
| 14 | * |
||
| 15 | * @return static |
||
| 16 | */ |
||
| 17 | public static function titleNotProvided(): self |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Thrown when the title characters limit is exceeded. |
||
| 24 | * |
||
| 25 | * @param string $title |
||
| 26 | * |
||
| 27 | * @return static |
||
| 28 | */ |
||
| 29 | public static function titleLimitExceeded(string $title): self |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Thrown when the subtitle characters limit is exceeded. |
||
| 40 | * |
||
| 41 | * @param string $title |
||
| 42 | * |
||
| 43 | * @return static |
||
| 44 | */ |
||
| 45 | public static function subtitleLimitExceeded(string $title): self |
||
| 53 | } |
||
| 54 |