Skip to content

Commit aee63bc

Browse files
committed
[TASK] Backport ViewHelper exception classes
This is a partial backport of #1344. Only the exception classes are backported, which makes it possible to use them in projects that need to support both Fluid 4 and 5.
1 parent a0a0653 commit aee63bc

File tree

5 files changed

+65
-0
lines changed

5 files changed

+65
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
/*
4+
* This file belongs to the package "TYPO3 Fluid".
5+
* See LICENSE.txt that was shipped with this package.
6+
*/
7+
8+
namespace TYPO3Fluid\Fluid\Core\ViewHelper;
9+
10+
/**
11+
* @api
12+
*/
13+
class InvalidArgumentDefinitionException extends InvalidArgumentException {}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
/*
4+
* This file belongs to the package "TYPO3 Fluid".
5+
* See LICENSE.txt that was shipped with this package.
6+
*/
7+
8+
namespace TYPO3Fluid\Fluid\Core\ViewHelper;
9+
10+
/**
11+
* @api
12+
*/
13+
class InvalidArgumentException extends Exception {}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
/*
4+
* This file belongs to the package "TYPO3 Fluid".
5+
* See LICENSE.txt that was shipped with this package.
6+
*/
7+
8+
namespace TYPO3Fluid\Fluid\Core\ViewHelper;
9+
10+
/**
11+
* @api
12+
*/
13+
class InvalidArgumentValueException extends InvalidArgumentException {}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
/*
4+
* This file belongs to the package "TYPO3 Fluid".
5+
* See LICENSE.txt that was shipped with this package.
6+
*/
7+
8+
namespace TYPO3Fluid\Fluid\Core\ViewHelper;
9+
10+
/**
11+
* @api
12+
*/
13+
class MissingArgumentException extends InvalidArgumentException {}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
/*
4+
* This file belongs to the package "TYPO3 Fluid".
5+
* See LICENSE.txt that was shipped with this package.
6+
*/
7+
8+
namespace TYPO3Fluid\Fluid\Core\ViewHelper;
9+
10+
/**
11+
* @api
12+
*/
13+
class UndeclaredArgumentException extends InvalidArgumentException {}

0 commit comments

Comments
 (0)