CoolCMS API

OperationContractViolationException extends LogicException
in package

FinalYes

A root operation broke the contract of a store (`scoped` mode, outside production by default).

Thrown by a participant from OperationParticipant::end() after it already cleaned up, and rethrown by OperationScope::end() only after every participant ended and the frame was closed, and never when the operation itself failed with an exception (that primary exception wins). Carries the operation name and the violation codes only: no request, payload or entity.

Table of Contents

Properties

$action  : string
$participant  : string
$presenter  : string
$violations  : array<string|int, mixed>

Methods

__construct()  : mixed

Properties

Methods

__construct()

public __construct(string $presenter, string $action, array<int, string> $violations, string $participant) : mixed
Parameters
$presenter : string
$action : string
$violations : array<int, string>

violation codes, e.g. end.pending_work

$participant : string
On this page

Search results