| 1: | <?php |
| 2: | declare(strict_types=1); |
| 3: | |
| 4: | namespace om\ICal\Exception; |
| 5: | |
| 6: | use Throwable; |
| 7: | |
| 8: | /** |
| 9: | * Common interface of all exceptions of the library. |
| 10: | * |
| 11: | * Details are available when they are known: the line number, the property name, |
| 12: | * the raw value and a stable machine readable error code (e.g. "syntax.invalid-line"). |
| 13: | */ |
| 14: | interface ICalException extends Throwable { |
| 15: | public function errorCode(): string; |
| 16: | |
| 17: | public function line(): ?int; |
| 18: | |
| 19: | public function property(): ?string; |
| 20: | |
| 21: | public function rawValue(): ?string; |
| 22: | } |
| 23: |