Skip to content

Throw exception

Plugin ID: eca_throw_exception

Available since: 2.1.3

Throws an exception that are be caught by ECA.

Fields

Exception type — config key: exception_type

Type: select · Required: yes · Default: empty string

Allowed values: Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException, Symfony\Component\HttpKernel\Exception\BadRequestHttpException, Symfony\Component\HttpKernel\Exception\ConflictHttpException, Symfony\Component\HttpKernel\Exception\GoneHttpException, Symfony\Component\HttpKernel\Exception\LengthRequiredHttpException, Symfony\Component\HttpKernel\Exception\LockedHttpException, Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException, Symfony\Component\HttpKernel\Exception\NotFoundHttpException, Symfony\Component\HttpKernel\Exception\PreconditionFailedHttpException, Symfony\Component\HttpKernel\Exception\PreconditionRequiredHttpException, Symfony\Component\HttpKernel\Exception\UnprocessableEntityHttpException, Symfony\Component\HttpKernel\Exception\UnsupportedMediaTypeHttpException

Response message — config key: response_message

An optional message explaining why the exception was thrown.
This field supports tokens.

Type: textfield · Required: no · Default: empty string

Log as an error — config key: log_exception

If enabled, the exception will be logged as an error.

Type: checkbox · Required: no · Default: true