xref: /plugin/combo/ComboStrap/ExceptionNotExists.php (revision 04fd306c7c155fa133ebb3669986875d65988276)
1*04fd306cSNickeau<?php
2*04fd306cSNickeau
3*04fd306cSNickeaunamespace ComboStrap;
4*04fd306cSNickeau
5*04fd306cSNickeau/**
6*04fd306cSNickeau * To make a difference between a value that was not found
7*04fd306cSNickeau * and a value that was not created because the resource does not exists
8*04fd306cSNickeau *
9*04fd306cSNickeau * Generally, if you have not found in a function, you should throw a not exist
10*04fd306cSNickeau *
11*04fd306cSNickeau * It permits to control that the {@link ExceptionNotFound} exception does not
12*04fd306cSNickeau * come from a lower/called function
13*04fd306cSNickeau *
14*04fd306cSNickeau * A {@link ExceptionNotExists} should be not be thrown with a {@Link ExceptionNotFound}
15*04fd306cSNickeau * on the same method
16*04fd306cSNickeau *
17*04fd306cSNickeau * Example: {@link PageId} {@link ModificationDate} should be found if the resource exists
18*04fd306cSNickeau */
19*04fd306cSNickeauclass ExceptionNotExists extends ExceptionCompile
20*04fd306cSNickeau{
21*04fd306cSNickeau
22*04fd306cSNickeau}
23